VTK  9.1.0
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 -------------------------------------------------------------------------*/
63 #ifndef vtkGraphLayout_h
64 #define vtkGraphLayout_h
65 
66 #include "vtkGraphAlgorithm.h"
67 #include "vtkInfovisLayoutModule.h" // For export macro
68 
72 
73 class VTKINFOVISLAYOUT_EXPORT vtkGraphLayout : public vtkGraphAlgorithm
74 {
75 public:
76  static vtkGraphLayout* New();
78  void PrintSelf(ostream& os, vtkIndent indent) override;
79 
81 
85  vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
87 
91  virtual int IsLayoutComplete();
92 
96  vtkMTimeType GetMTime() override;
97 
99 
105  vtkGetMacro(ZRange, double);
106  vtkSetMacro(ZRange, double);
108 
110 
113  vtkGetObjectMacro(Transform, vtkAbstractTransform);
116 
118 
121  vtkSetMacro(UseTransform, bool);
122  vtkGetMacro(UseTransform, bool);
123  vtkBooleanMacro(UseTransform, bool);
125 
126 protected:
128  ~vtkGraphLayout() override;
129 
131 
137 
139 
140 private:
141  vtkGraph* LastInput;
142  vtkGraph* InternalGraph;
143  vtkMTimeType LastInputMTime;
144  bool StrategyChanged;
145  double ZRange;
147  bool UseTransform;
148 
149  vtkGraphLayout(const vtkGraphLayout&) = delete;
150  void operator=(const vtkGraphLayout&) = delete;
151 };
152 
153 #endif
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:91
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:52
vtkGraphLayout::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkGraphLayout::LayoutStrategy
vtkGraphLayoutStrategy * LayoutStrategy
Definition: vtkGraphLayout.h:130
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition: vtkGraphLayoutStrategy.h:105
vtkGraphLayout::New
static vtkGraphLayout * New()
vtkX3D::Transform
@ Transform
Definition: vtkX3D.h:47
vtkGraphLayout::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkGraphLayout::IsLayoutComplete
virtual int IsLayoutComplete()
Ask the layout algorithm if the layout is complete.
vtkGraphLayout::SetTransform
virtual void SetTransform(vtkAbstractTransform *t)
Transform the graph vertices after the layout.
vtkGraphAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkGraphLayout::~vtkGraphLayout
~vtkGraphLayout() override
vtkGraphLayout::SetLayoutStrategy
void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy)
The layout strategy to use during graph layout.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkGraphLayout::GetMTime
vtkMTimeType GetMTime() override
Get the modification time of the layout algorithm.
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:339
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:74
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:136
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287