VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkBranchExtentTranslator Class Reference

Uses alternative source for whole extent. More...

#include <vtkBranchExtentTranslator.h>

Inheritance diagram for vtkBranchExtentTranslator:
[legend]
Collaboration diagram for vtkBranchExtentTranslator:
[legend]

Public Types

typedef vtkExtentTranslator Superclass
- Public Types inherited from vtkExtentTranslator
typedef vtkObject Superclass
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
int PieceToExtent ()
virtual void SetOriginalSource (vtkImageData *)
virtual vtkImageDataGetOriginalSource ()
virtual void SetAssignedPiece (int)
virtual int GetAssignedPiece ()
virtual void SetAssignedNumberOfPieces (int)
virtual int GetAssignedNumberOfPieces ()
- Public Member Functions inherited from vtkExtentTranslator
void SetSplitPath (int len, int *splitpath)
virtual void SetWholeExtent (int, int, int, int, int, int)
virtual void SetWholeExtent (int[6])
virtual int * GetWholeExtent ()
virtual void GetWholeExtent (int &, int &, int &, int &, int &, int &)
virtual void GetWholeExtent (int[6])
virtual void SetExtent (int, int, int, int, int, int)
virtual void SetExtent (int[6])
virtual int * GetExtent ()
virtual void GetExtent (int &, int &, int &, int &, int &, int &)
virtual void GetExtent (int[6])
virtual void SetPiece (int)
virtual int GetPiece ()
virtual void SetNumberOfPieces (int)
virtual int GetNumberOfPieces ()
virtual void SetGhostLevel (int)
virtual int GetGhostLevel ()
virtual int PieceToExtentByPoints ()
virtual int PieceToExtentThreadSafe (int piece, int numPieces, int ghostLevel, int *wholeExtent, int *resultExtent, int splitMode, int byPoints)
void SetSplitModeToBlock ()
void SetSplitModeToXSlab ()
void SetSplitModeToYSlab ()
void SetSplitModeToZSlab ()
virtual int GetSplitMode ()
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
virtual void DebugOff ()
unsigned char GetDebug ()
void SetDebug (unsigned char 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)
vtkCommandGetCommand (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)
int InvokeEvent (unsigned long event, void *callData)
int InvokeEvent (const char *event, void *callData)
int InvokeEvent (unsigned long event)
int InvokeEvent (const char *event)
- Public Member Functions inherited from vtkObjectBase
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 &os)
virtual void PrintHeader (ostream &os, vtkIndent indent)
virtual void PrintTrailer (ostream &os, vtkIndent indent)
int GetReferenceCount ()

Static Public Member Functions

static vtkBranchExtentTranslatorNew ()
static int IsTypeOf (const char *type)
static vtkBranchExtentTranslatorSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkBranchExtentTranslator ()
 ~vtkBranchExtentTranslator ()
- Protected Member Functions inherited from vtkExtentTranslator
 vtkExtentTranslator ()
 ~vtkExtentTranslator ()
int SplitExtent (int piece, int numPieces, int *extent, int splitMode)
int SplitExtentByPoints (int piece, int numPieces, int *extent, int splitMode)
- Protected Member Functions inherited from vtkObject
 vtkObject ()
virtual ~vtkObject ()
virtual void RegisterInternal (vtkObjectBase *, int check)
virtual void UnRegisterInternal (vtkObjectBase *, int check)
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
void InternalReleaseFocus ()
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void CollectRevisions (ostream &os)
virtual void ReportReferences (vtkGarbageCollector *)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Protected Attributes

vtkImageDataOriginalSource
int AssignedPiece
int AssignedNumberOfPieces
- Protected Attributes inherited from vtkExtentTranslator
int Piece
int NumberOfPieces
int GhostLevel
int Extent [6]
int WholeExtent [6]
int SplitMode
int * SplitPath
int SplitLen
- Protected Attributes inherited from vtkObject
unsigned char Debug
vtkTimeStamp MTime
vtkSubjectHelper * SubjectHelper
- Protected Attributes inherited from vtkObjectBase
int ReferenceCount
vtkWeakPointerBase ** WeakPointers

Additional Inherited Members

- Protected Types inherited from vtkExtentTranslator
enum  Modes { X_SLAB_MODE = 0, Y_SLAB_MODE = 1, Z_SLAB_MODE = 2, BLOCK_MODE = 3 }
- Friends inherited from vtkObject

Detailed Description

Uses alternative source for whole extent.

vtkBranchExtentTranslator is like extent translator, but it uses an alternative source as a whole extent. The whole extent passed is assumed to be a subextent of the original source. we simply take the intersection of the split extent and the whole extdent passed in. We are attempting to make branching pipelines request consistent extents with the same piece requests.

Warning
This object is still under development.
Tests:
vtkBranchExtentTranslator (Tests)

Definition at line 39 of file vtkBranchExtentTranslator.h.

Member Typedef Documentation

Definition at line 44 of file vtkBranchExtentTranslator.h.

Constructor & Destructor Documentation

vtkBranchExtentTranslator::vtkBranchExtentTranslator ( )
protected
vtkBranchExtentTranslator::~vtkBranchExtentTranslator ( )
protected

Member Function Documentation

static vtkBranchExtentTranslator* vtkBranchExtentTranslator::New ( )
static

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkExtentTranslator.

virtual const char* vtkBranchExtentTranslator::GetClassName ( )
virtual

Reimplemented from vtkExtentTranslator.

static int vtkBranchExtentTranslator::IsTypeOf ( const char *  name)
static

Return 1 if this class type 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 vtkExtentTranslator.

virtual int vtkBranchExtentTranslator::IsA ( const char *  name)
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 vtkExtentTranslator.

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

Reimplemented from vtkExtentTranslator.

void vtkBranchExtentTranslator::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkExtentTranslator.

virtual void vtkBranchExtentTranslator::SetOriginalSource ( vtkImageData )
virtual

This is the original upstream image source.

virtual vtkImageData* vtkBranchExtentTranslator::GetOriginalSource ( )
virtual

This is the original upstream image source.

int vtkBranchExtentTranslator::PieceToExtent ( )
virtual

Generates the extent from the pieces.

Reimplemented from vtkExtentTranslator.

virtual void vtkBranchExtentTranslator::SetAssignedPiece ( int  )
virtual

This unstructured extent/piece is store here for the users convenience. It is not used internally. The intent was to let an "assignment" be made when the translator/first source is created. The translator/assignment can be used for any new filter that uses the original source as output. Branches will then have the same assignment.

virtual int vtkBranchExtentTranslator::GetAssignedPiece ( )
virtual

This unstructured extent/piece is store here for the users convenience. It is not used internally. The intent was to let an "assignment" be made when the translator/first source is created. The translator/assignment can be used for any new filter that uses the original source as output. Branches will then have the same assignment.

virtual void vtkBranchExtentTranslator::SetAssignedNumberOfPieces ( int  )
virtual

This unstructured extent/piece is store here for the users convenience. It is not used internally. The intent was to let an "assignment" be made when the translator/first source is created. The translator/assignment can be used for any new filter that uses the original source as output. Branches will then have the same assignment.

virtual int vtkBranchExtentTranslator::GetAssignedNumberOfPieces ( )
virtual

This unstructured extent/piece is store here for the users convenience. It is not used internally. The intent was to let an "assignment" be made when the translator/first source is created. The translator/assignment can be used for any new filter that uses the original source as output. Branches will then have the same assignment.

Member Data Documentation

vtkImageData* vtkBranchExtentTranslator::OriginalSource
protected

Definition at line 73 of file vtkBranchExtentTranslator.h.

int vtkBranchExtentTranslator::AssignedPiece
protected

Definition at line 74 of file vtkBranchExtentTranslator.h.

int vtkBranchExtentTranslator::AssignedNumberOfPieces
protected

Definition at line 75 of file vtkBranchExtentTranslator.h.


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