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 -------------------------------------------------------------------------*/
34 #ifndef __vtkRandomLayoutStrategy_h
35 #define __vtkRandomLayoutStrategy_h
36 
37 #include "vtkGraphLayoutStrategy.h"
38 
40 {
41 public:
42  static vtkRandomLayoutStrategy *New();
43 
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
51  vtkSetClampMacro(RandomSeed, int, 0, VTK_LARGE_INTEGER);
52  vtkGetMacro(RandomSeed, int);
54 
56 
59  vtkSetVector6Macro(GraphBounds,double);
60  vtkGetVectorMacro(GraphBounds,double,6);
62 
64 
67  vtkSetMacro(AutomaticBoundsComputation, int);
68  vtkGetMacro(AutomaticBoundsComputation, int);
69  vtkBooleanMacro(AutomaticBoundsComputation, int);
71 
73 
75  vtkSetMacro(ThreeDimensionalLayout, int);
76  vtkGetMacro(ThreeDimensionalLayout, int);
77  vtkBooleanMacro(ThreeDimensionalLayout, int);
79 
81  void SetGraph(vtkGraph *graph);
82 
84  void Layout();
85 
86 protected:
89 
91  double GraphBounds[6];
93  int ThreeDimensionalLayout; //Boolean for a third dimension.
94 private:
95 
96  vtkRandomLayoutStrategy(const vtkRandomLayoutStrategy&); // Not implemented.
97  void operator=(const vtkRandomLayoutStrategy&); // Not implemented.
98 };
99 
100 #endif
101 
virtual void SetGraph(vtkGraph *graph)
randomly places vertices in 2 or 3 dimensions
abstract superclass for all graph layout strategies
Base class for graph data types.
Definition: vtkGraph.h:287
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_INFOVIS_EXPORT
#define VTK_LARGE_INTEGER
Definition: vtkType.h:148
static vtkObject * New()
virtual void Layout()=0
void PrintSelf(ostream &os, vtkIndent indent)