VTK
vtkCirclePackLayout.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCirclePackLayout.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  -------------------------------------------------------------------------*/
47 #ifndef vtkCirclePackLayout_h
48 #define vtkCirclePackLayout_h
49 
50 #include "vtkInfovisLayoutModule.h" // For export macro
51 #include "vtkTreeAlgorithm.h"
52 
54 class vtkDoubleArray;
55 class vtkDataArray;
56 class vtkTree;
57 
59 {
60 public:
62 
64  void PrintSelf(ostream& os, vtkIndent indent);
65 
67 
70  vtkGetStringMacro(CirclesFieldName);
71  vtkSetStringMacro(CirclesFieldName);
73 
75 
77  virtual void SetSizeArrayName(const char* name)
80 
82 
86 
91  vtkIdType FindVertex(double pnt[2], double *cinfo=0);
92 
95  void GetBoundingCircle(vtkIdType id, double *cinfo);
96 
98  virtual unsigned long GetMTime();
99 
100 protected:
103 
106 
108 
109 private:
110 
111  vtkCirclePackLayout(const vtkCirclePackLayout&); // Not implemented.
112  void operator=(const vtkCirclePackLayout&); // Not implemented.
113  void prepareSizeArray(vtkDoubleArray* mySizeArray,
114  vtkTree* tree);
115 };
116 
117 #endif
vtkCirclePackLayout::SetSizeArrayName
virtual void SetSizeArrayName(const char *name)
Definition: vtkCirclePackLayout.h:77
vtkCirclePackLayout::LayoutStrategy
vtkCirclePackLayoutStrategy * LayoutStrategy
Definition: vtkCirclePackLayout.h:105
vtkCirclePackLayout::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkCirclePackLayout::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkCirclePackLayout::vtkCirclePackLayout
vtkCirclePackLayout()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkCirclePackLayout
layout a vtkTree as a circle packing.
Definition: vtkCirclePackLayout.h:59
vtkTreeAlgorithm.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkCirclePackLayout::GetBoundingCircle
void GetBoundingCircle(vtkIdType id, double *cinfo)
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkCirclePackLayoutStrategy
abstract superclass for all circle packing layout strategies.
Definition: vtkCirclePackLayoutStrategy.h:52
vtkDataObject::FIELD_ASSOCIATION_VERTICES
@ FIELD_ASSOCIATION_VERTICES
Definition: vtkDataObject.h:234
vtkTree
A rooted tree data structure.
Definition: vtkTree.h:60
vtkCirclePackLayout::~vtkCirclePackLayout
~vtkCirclePackLayout()
vtkgl::name
GLuint const GLchar * name
Definition: vtkgl.h:11983
vtkCirclePackLayout::CirclesFieldName
char * CirclesFieldName
Definition: vtkCirclePackLayout.h:104
vtkCirclePackLayout::SetLayoutStrategy
void SetLayoutStrategy(vtkCirclePackLayoutStrategy *strategy)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkTreeAlgorithm
Superclass for algorithms that produce only Tree as output.
Definition: vtkTreeAlgorithm.h:48
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
VTKINFOVISLAYOUT_EXPORT
#define VTKINFOVISLAYOUT_EXPORT
Definition: vtkInfovisLayoutModule.h:15
vtkInfovisLayoutModule.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkCirclePackLayout::FindVertex
vtkIdType FindVertex(double pnt[2], double *cinfo=0)
vtkCirclePackLayout::GetMTime
virtual unsigned long GetMTime()
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:49
vtkAlgorithm::SetInputArrayToProcess
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
vtkCirclePackLayout::New
static vtkCirclePackLayout * New()