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
73class VTKINFOVISLAYOUT_EXPORT vtkGraphLayout : public vtkGraphAlgorithm
74{
75public:
78 void PrintSelf(ostream& os, vtkIndent indent) override;
79
81
85 vtkGetObjectMacro(LayoutStrategy, vtkGraphLayoutStrategy);
87
91 virtual int IsLayoutComplete();
92
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
126protected:
128 ~vtkGraphLayout() override;
129
131
137
139
140private:
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
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:339
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ Transform
Definition: vtkX3D.h:47
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287