VTK
vtkRandomLayoutStrategy.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkRandomLayoutStrategy.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-------------------------------------------------------------------------*/
35#ifndef vtkRandomLayoutStrategy_h
36#define vtkRandomLayoutStrategy_h
37
38#include "vtkInfovisLayoutModule.h" // For export macro
40
41class VTKINFOVISLAYOUT_EXPORT vtkRandomLayoutStrategy : public vtkGraphLayoutStrategy
42{
43public:
45
47 void PrintSelf(ostream& os, vtkIndent indent);
48
50
55 vtkSetClampMacro(RandomSeed, int, 0, VTK_INT_MAX);
56 vtkGetMacro(RandomSeed, int);
58
60
65 vtkSetVector6Macro(GraphBounds,double);
66 vtkGetVectorMacro(GraphBounds,double,6);
68
70
75 vtkSetMacro(AutomaticBoundsComputation, int);
76 vtkGetMacro(AutomaticBoundsComputation, int);
77 vtkBooleanMacro(AutomaticBoundsComputation, int);
79
81
86 vtkSetMacro(ThreeDimensionalLayout, int);
87 vtkGetMacro(ThreeDimensionalLayout, int);
88 vtkBooleanMacro(ThreeDimensionalLayout, int);
90
94 void SetGraph(vtkGraph *graph);
95
99 void Layout();
100
101protected:
104
106 double GraphBounds[6];
108 int ThreeDimensionalLayout; //Boolean for a third dimension.
109private:
110
111 vtkRandomLayoutStrategy(const vtkRandomLayoutStrategy&) VTK_DELETE_FUNCTION;
112 void operator=(const vtkRandomLayoutStrategy&) VTK_DELETE_FUNCTION;
113};
114
115#endif
116
abstract superclass for all graph layout strategies
Base class for graph data types.
Definition: vtkGraph.h:288
a simple class to control print indentation
Definition: vtkIndent.h:40
randomly places vertices in 2 or 3 dimensions
static vtkRandomLayoutStrategy * New()
void Layout()
Perform the random layout.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetGraph(vtkGraph *graph)
Set the graph to layout.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_INT_MAX
Definition: vtkType.h:153