VTK
vtkGraphLayout.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGraphLayout.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
40 #ifndef vtkGraphLayout_h
41 #define vtkGraphLayout_h
42 
43 #include "vtkInfovisLayoutModule.h" // For export macro
44 #include "vtkGraphAlgorithm.h"
45 
49 
50 class VTKINFOVISLAYOUT_EXPORT vtkGraphLayout : public vtkGraphAlgorithm
51 {
52 public:
53  static vtkGraphLayout *New();
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
62  vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
64 
68  virtual int IsLayoutComplete();
69 
74 
76 
82  vtkGetMacro(ZRange, double);
83  vtkSetMacro(ZRange, double);
85 
87 
90  vtkGetObjectMacro(Transform, vtkAbstractTransform);
93 
95 
98  vtkSetMacro(UseTransform, bool);
99  vtkGetMacro(UseTransform, bool);
100  vtkBooleanMacro(UseTransform, bool);
102 
103 protected:
106 
108 
114 
116 
117 private:
118 
119  vtkGraph* LastInput;
120  vtkGraph* InternalGraph;
121  vtkMTimeType LastInputMTime;
122  bool StrategyChanged;
123  double ZRange;
125  bool UseTransform;
126 
127  vtkGraphLayout(const vtkGraphLayout&) VTK_DELETE_FUNCTION;
128  void operator=(const vtkGraphLayout&) VTK_DELETE_FUNCTION;
129 };
130 
131 #endif
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:55
vtkGraphLayout::~vtkGraphLayout
~vtkGraphLayout()
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:51
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkGraphLayout::LayoutStrategy
vtkGraphLayoutStrategy * LayoutStrategy
Definition: vtkGraphLayout.h:107
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition: vtkGraphLayoutStrategy.h:46
vtkGraphLayout::New
static vtkGraphLayout * New()
vtkGraphLayout::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkGraphLayout::GetMTime
virtual vtkMTimeType GetMTime()
Get the modification time of the layout algorithm.
vtkGraphLayout::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkGraphLayout::IsLayoutComplete
virtual int IsLayoutComplete()
Ask the layout algorithm if the layout is complete.
vtkGraphLayout::SetTransform
virtual void SetTransform(vtkAbstractTransform *t)
vtkGraphAlgorithm.h
ADIOS::Transform
Transform
Definition: ADIOSDefs.h:40
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGraphLayout::SetLayoutStrategy
void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy)
The layout strategy to use during graph layout.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:288
vtkEventForwarderCommand
a simple event forwarder command
Definition: vtkEventForwarderCommand.h:35
vtkGraphLayout::vtkGraphLayout
vtkGraphLayout()
vtkGraphLayout
layout a graph in 2 or 3 dimensions
Definition: vtkGraphLayout.h:51
vtkGraphLayout::EventForwarder
vtkEventForwarderCommand * EventForwarder
This intercepts events from the strategy object and re-emits them as if they came from the layout eng...
Definition: vtkGraphLayout.h:113