ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkKdTreeManager Class Reference

class used to generate KdTree from unstructured or structured data. More...

#include <vtkKdTreeManager.h>

Inherits vtkObject.

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetStructuredDataInformation (vtkExtentTranslator *translator, const int whole_extent[6], const double origin[3], const double spacing[3])
 Set the optional extent translator to use to get aid in building the KdTree. More...
 
void GenerateKdTree ()
 Rebuilds the KdTree. More...
 
void AddDataObject (vtkDataObject *)
 Add data objects. More...
 
void RemoveAllDataObjects ()
 Add data objects. More...
 
void SetKdTree (vtkPKdTree *)
 Get/Set the KdTree managed by this manager. More...
 
virtual vtkPKdTree * GetKdTree ()
 Get/Set the KdTree managed by this manager. More...
 
virtual void SetNumberOfPieces (int)
 Get/Set the number of pieces. More...
 
virtual int GetNumberOfPieces ()
 Get/Set the number of pieces. More...
 

Static Public Member Functions

static vtkKdTreeManagerNew ()
 
static int IsTypeOf (const char *type)
 
static vtkKdTreeManagerSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkKdTreeManager ()
 
 ~vtkKdTreeManager ()
 
void AddDataObjectToKdTree (vtkDataObject *data)
 
void AddDataSetToKdTree (vtkDataSet *data)
 
virtual void SetOrigin (double, double, double)
 
virtual void SetOrigin (double [3])
 
virtual void SetSpacing (double, double, double)
 
virtual void SetSpacing (double [3])
 
virtual void SetWholeExtent (int, int, int, int, int, int)
 
virtual void SetWholeExtent (int [6])
 

Protected Attributes

bool KdTreeInitialized
 
vtkPKdTree * KdTree
 
int NumberOfPieces
 
vtkSmartPointer< vtkExtentTranslator > ExtentTranslator
 
double Origin [3]
 
double Spacing [3]
 
int WholeExtent [6]
 

Detailed Description

class used to generate KdTree from unstructured or structured data.

ParaView needs to build a KdTree when ordered compositing. The KdTree is either built using the all data in the pipeline when on structure data is present, or using the partitions provided by the structure data's extent translator. This class manages this logic. When structure data's extent translator is to be used, it simply uses vtkKdTreeGenerator. Otherwise, it lets the vtkPKdTree build the optimal partitioning for the data.

Definition at line 41 of file vtkKdTreeManager.h.

Member Typedef Documentation

◆ Superclass

typedef vtkObject vtkKdTreeManager::Superclass

Definition at line 45 of file vtkKdTreeManager.h.

Constructor & Destructor Documentation

◆ vtkKdTreeManager()

vtkKdTreeManager::vtkKdTreeManager ( )
protected

◆ ~vtkKdTreeManager()

vtkKdTreeManager::~vtkKdTreeManager ( )
protected

Member Function Documentation

◆ New()

static vtkKdTreeManager* vtkKdTreeManager::New ( )
static

◆ GetClassName()

virtual const char* vtkKdTreeManager::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkKdTreeManager::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkKdTreeManager::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkKdTreeManager* vtkKdTreeManager::SafeDownCast ( vtkObject *  o)
static

◆ PrintSelf()

void vtkKdTreeManager::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ AddDataObject()

void vtkKdTreeManager::AddDataObject ( vtkDataObject *  )

Add data objects.

◆ RemoveAllDataObjects()

void vtkKdTreeManager::RemoveAllDataObjects ( )

Add data objects.

◆ SetStructuredDataInformation()

void vtkKdTreeManager::SetStructuredDataInformation ( vtkExtentTranslator *  translator,
const int  whole_extent[6],
const double  origin[3],
const double  spacing[3] 
)

Set the optional extent translator to use to get aid in building the KdTree.

◆ SetKdTree()

void vtkKdTreeManager::SetKdTree ( vtkPKdTree *  )

Get/Set the KdTree managed by this manager.

◆ GetKdTree()

virtual vtkPKdTree* vtkKdTreeManager::GetKdTree ( )
virtual

Get/Set the KdTree managed by this manager.

◆ SetNumberOfPieces()

virtual void vtkKdTreeManager::SetNumberOfPieces ( int  )
virtual

Get/Set the number of pieces.

Passed to the vtkKdTreeGenerator when SetStructuredDataInformation() is used with non-empty translator.

◆ GetNumberOfPieces()

virtual int vtkKdTreeManager::GetNumberOfPieces ( )
virtual

Get/Set the number of pieces.

Passed to the vtkKdTreeGenerator when SetStructuredDataInformation() is used with non-empty translator.

◆ GenerateKdTree()

void vtkKdTreeManager::GenerateKdTree ( )

Rebuilds the KdTree.

◆ AddDataObjectToKdTree()

void vtkKdTreeManager::AddDataObjectToKdTree ( vtkDataObject *  data)
protected

◆ AddDataSetToKdTree()

void vtkKdTreeManager::AddDataSetToKdTree ( vtkDataSet *  data)
protected

◆ SetOrigin() [1/2]

virtual void vtkKdTreeManager::SetOrigin ( double  ,
double  ,
double   
)
protectedvirtual

◆ SetOrigin() [2/2]

virtual void vtkKdTreeManager::SetOrigin ( double  [3])
protectedvirtual

◆ SetSpacing() [1/2]

virtual void vtkKdTreeManager::SetSpacing ( double  ,
double  ,
double   
)
protectedvirtual

◆ SetSpacing() [2/2]

virtual void vtkKdTreeManager::SetSpacing ( double  [3])
protectedvirtual

◆ SetWholeExtent() [1/2]

virtual void vtkKdTreeManager::SetWholeExtent ( int  ,
int  ,
int  ,
int  ,
int  ,
int   
)
protectedvirtual

◆ SetWholeExtent() [2/2]

virtual void vtkKdTreeManager::SetWholeExtent ( int  [6])
protectedvirtual

Member Data Documentation

◆ KdTreeInitialized

bool vtkKdTreeManager::KdTreeInitialized
protected

Definition at line 93 of file vtkKdTreeManager.h.

◆ KdTree

vtkPKdTree* vtkKdTreeManager::KdTree
protected

Definition at line 94 of file vtkKdTreeManager.h.

◆ NumberOfPieces

int vtkKdTreeManager::NumberOfPieces
protected

Definition at line 95 of file vtkKdTreeManager.h.

◆ ExtentTranslator

vtkSmartPointer<vtkExtentTranslator> vtkKdTreeManager::ExtentTranslator
protected

Definition at line 97 of file vtkKdTreeManager.h.

◆ Origin

double vtkKdTreeManager::Origin[3]
protected

Definition at line 98 of file vtkKdTreeManager.h.

◆ Spacing

double vtkKdTreeManager::Spacing[3]
protected

Definition at line 99 of file vtkKdTreeManager.h.

◆ WholeExtent

int vtkKdTreeManager::WholeExtent[6]
protected

Definition at line 100 of file vtkKdTreeManager.h.


The documentation for this class was generated from the following file: