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 -------------------------------------------------------------------------*/
39 #ifndef vtkGraphLayout_h
40 #define vtkGraphLayout_h
41 
42 #include "vtkInfovisLayoutModule.h" // For export macro
43 #include "vtkGraphAlgorithm.h"
44 
48 
50 {
51 public:
52  static vtkGraphLayout *New();
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
61 
63  virtual int IsLayoutComplete();
64 
66  virtual unsigned long GetMTime();
67 
69 
72  vtkGetMacro(ZRange, double);
73  vtkSetMacro(ZRange, double);
75 
77 
81 
83 
84  vtkSetMacro(UseTransform, bool);
85  vtkGetMacro(UseTransform, bool);
86  vtkBooleanMacro(UseTransform, bool);
88 
89 protected:
92 
94 
98 
100 
101 private:
102 
103  vtkGraph* LastInput;
104  vtkGraph* InternalGraph;
105  unsigned long LastInputMTime;
106  bool StrategyChanged;
107  double ZRange;
109  bool UseTransform;
110 
111  vtkGraphLayout(const vtkGraphLayout&); // Not implemented.
112  void operator=(const vtkGraphLayout&); // Not implemented.
113 };
114 
115 #endif
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkGraphAlgorithm
Superclass for algorithms that produce only graph as output.
Definition: vtkGraphAlgorithm.h:54
vtkGraphLayout::~vtkGraphLayout
~vtkGraphLayout()
vtkAbstractTransform
superclass for all geometric transformations
Definition: vtkAbstractTransform.h:50
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkGraphLayout::LayoutStrategy
vtkGraphLayoutStrategy * LayoutStrategy
Definition: vtkGraphLayout.h:93
vtkGraphLayoutStrategy
abstract superclass for all graph layout strategies
Definition: vtkGraphLayoutStrategy.h:45
vtkGraphLayout::New
static vtkGraphLayout * New()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkGraphLayout::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkX3D::Transform
@ Transform
Definition: vtkX3D.h:41
vtkGraphLayout::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGraphLayout::IsLayoutComplete
virtual int IsLayoutComplete()
vtkGraphLayout::SetTransform
virtual void SetTransform(vtkAbstractTransform *t)
vtkGraphAlgorithm.h
vtkGraphLayout::GetMTime
virtual unsigned long GetMTime()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGraphLayout::SetLayoutStrategy
void SetLayoutStrategy(vtkGraphLayoutStrategy *strategy)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
VTKINFOVISLAYOUT_EXPORT
#define VTKINFOVISLAYOUT_EXPORT
Definition: vtkInfovisLayoutModule.h:15
vtkInfovisLayoutModule.h
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkgl::t
GLdouble GLdouble t
Definition: vtkgl.h:11602
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:289
vtkEventForwarderCommand
a simple event forwarder command
Definition: vtkEventForwarderCommand.h:34
vtkGraphLayout::vtkGraphLayout
vtkGraphLayout()
vtkGraphLayout
layout a graph in 2 or 3 dimensions
Definition: vtkGraphLayout.h:50
vtkGraphLayout::EventForwarder
vtkEventForwarderCommand * EventForwarder
Definition: vtkGraphLayout.h:97