VTK  9.2.6
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-------------------------------------------------------------------------*/
69#ifndef vtkGraphLayout_h
70#define vtkGraphLayout_h
71
72#include "vtkGraphAlgorithm.h"
73#include "vtkInfovisLayoutModule.h" // For export macro
74
78
79class VTKINFOVISLAYOUT_EXPORT vtkGraphLayout : public vtkGraphAlgorithm
80{
81public:
84 void PrintSelf(ostream& os, vtkIndent indent) override;
85
87
91 vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
93
97 virtual int IsLayoutComplete();
98
103
105
111 vtkGetMacro(ZRange, double);
112 vtkSetMacro(ZRange, double);
114
116
119 vtkGetObjectMacro(Transform, vtkAbstractTransform);
122
124
127 vtkSetMacro(UseTransform, bool);
128 vtkGetMacro(UseTransform, bool);
129 vtkBooleanMacro(UseTransform, bool);
131
132protected:
134 ~vtkGraphLayout() override;
135
137
143
145
146private:
147 vtkGraph* LastInput;
148 vtkGraph* InternalGraph;
149 vtkMTimeType LastInputMTime;
150 bool StrategyChanged;
151 double ZRange;
153 bool UseTransform;
154
155 vtkGraphLayout(const vtkGraphLayout&) = delete;
156 void operator=(const vtkGraphLayout&) = delete;
157};
158
159#endif
superclass for all geometric transformations
a simple event forwarder command
Superclass for algorithms that produce only graph as output.
abstract superclass for all graph layout strategies
layout a graph in 2 or 3 dimensions
virtual int IsLayoutComplete()
Ask the layout algorithm if the layout is complete.
void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy)
The layout strategy to use during graph layout.
vtkMTimeType GetMTime() override
Get the modification time of the layout algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkEventForwarderCommand * EventForwarder
This intercepts events from the strategy object and re-emits them as if they came from the layout eng...
vtkGraphLayoutStrategy * LayoutStrategy
static vtkGraphLayout * New()
~vtkGraphLayout() override
virtual void SetTransform(vtkAbstractTransform *t)
Transform the graph vertices after the layout.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
Base class for graph data types.
Definition: vtkGraph.h:345
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ Transform
Definition: vtkX3D.h:47
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287