VTK
|
layout a vtkTree into packed circles using the front chain algorithm. More...
#include <vtkCirclePackFrontChainLayoutStrategy.h>
Public Types | |
typedef vtkCirclePackLayoutStrategy | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkCirclePackFrontChainLayoutStrategy * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Layout (vtkTree *inputTree, vtkDataArray *areaArray, vtkDataArray *sizeArray) |
virtual int | GetWidth () |
virtual void | SetWidth (int) |
virtual int | GetHeight () |
virtual void | SetHeight (int) |
![]() | |
vtkCirclePackLayoutStrategy * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkCirclePackFrontChainLayoutStrategy * | New () |
static int | IsTypeOf (const char *type) |
static vtkCirclePackFrontChainLayoutStrategy * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkCirclePackLayoutStrategy * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkCirclePackFrontChainLayoutStrategy () | |
~vtkCirclePackFrontChainLayoutStrategy () | |
![]() | |
vtkCirclePackLayoutStrategy () | |
~vtkCirclePackLayoutStrategy () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
char * | CirclesFieldName |
int | Width |
int | Height |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
layout a vtkTree into packed circles using the front chain algorithm.
vtkCirclePackFrontChainLayoutStrategy assigns circles to each node of the input vtkTree using the front chain algorithm. The algorithm packs circles by searching a "front chain" of circles around the perimeter of the circles that have already been packed for the current level in the tree hierarchy. Searching the front chain is in general faster than searching all of the circles that have been packed at the current level.
WARNING: The algorithm tends to break down and produce packings with overlapping circles when there is a large difference in the radii of the circles at a given level of the tree hierarchy. Roughly on the order a 1000:1 ratio of circle radii.
Please see the following reference for more details on the algorithm.
Title: "Visualization of large hierarchical data by circle packing" Authors: Weixin Wang, Hui Wang, Guozhong Dai, Hongan Wang Conference: Proceedings of the SIGCHI conference on Human Factors in computing systems Year: 2006
Definition at line 55 of file vtkCirclePackFrontChainLayoutStrategy.h.
Definition at line 60 of file vtkCirclePackFrontChainLayoutStrategy.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkCirclePackLayoutStrategy.
|
static |
|
protectedvirtual |
Reimplemented from vtkCirclePackLayoutStrategy.
vtkCirclePackFrontChainLayoutStrategy* vtkCirclePackFrontChainLayoutStrategy::NewInstance | ( | ) | const |
|
virtual |
|
virtual |
Perform the layout of the input tree, and store the circle bounds of each vertex as a tuple in a data array. (Xcenter, Ycenter, Radius).
Implements vtkCirclePackLayoutStrategy.
|
virtual |
Width and Height define the size of the output window that the circle packing is placed inside. Defaults to Width 1, Height 1
|
virtual |
Width and Height define the size of the output window that the circle packing is placed inside. Defaults to Width 1, Height 1
|
virtual |
Width and Height define the size of the output window that the circle packing is placed inside. Defaults to Width 1, Height 1
|
virtual |
Width and Height define the size of the output window that the circle packing is placed inside. Defaults to Width 1, Height 1
|
protected |
Definition at line 83 of file vtkCirclePackFrontChainLayoutStrategy.h.
|
protected |
Definition at line 84 of file vtkCirclePackFrontChainLayoutStrategy.h.
|
protected |
Definition at line 85 of file vtkCirclePackFrontChainLayoutStrategy.h.