VTK
|
helper object to manage the visibility of points and cells More...
#include <vtkStructuredVisibilityConstraint.h>
Inherits vtkObject.
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkStructuredVisibilityConstraint * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
unsigned char | IsVisible (vtkIdType id) |
void | Blank (vtkIdType id) |
void | UnBlank (vtkIdType id) |
void | Initialize (int dims[3]) |
void | Allocate () |
void | ShallowCopy (vtkStructuredVisibilityConstraint *src) |
void | DeepCopy (vtkStructuredVisibilityConstraint *src) |
virtual int * | GetDimensions () |
virtual void | GetDimensions (int data[3]) |
void | SetVisibilityById (vtkUnsignedCharArray *vis) |
virtual vtkUnsignedCharArray * | GetVisibilityById () |
unsigned char | IsConstrained () |
Static Public Member Functions | |
static vtkStructuredVisibilityConstraint * | New () |
static int | IsTypeOf (const char *type) |
static vtkStructuredVisibilityConstraint * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkStructuredVisibilityConstraint () | |
~vtkStructuredVisibilityConstraint () | |
Protected Attributes | |
vtkUnsignedCharArray * | VisibilityById |
int | Dimensions [3] |
vtkIdType | NumberOfIds |
unsigned char | Initialized |
helper object to manage the visibility of points and cells
vtkStructuredVisibilityConstraint is a general class to manage a list of points/cell marked as invalid or invisible. Currently, it does this by maintaining an unsigned char array associated with points/cells. To conserve memory, this array is allocated only when it is needed (when Blank() is called the first time). Make sure to call Initialize() with the right dimensions before calling any methods that set/get visibility.
Definition at line 36 of file vtkStructuredVisibilityConstraint.h.
typedef vtkObject vtkStructuredVisibilityConstraint::Superclass |
Definition at line 41 of file vtkStructuredVisibilityConstraint.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkStructuredVisibilityConstraint* vtkStructuredVisibilityConstraint::NewInstance | ( | ) | const |
void vtkStructuredVisibilityConstraint::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
inline |
Returns 1 is the point/cell is visible, 0 otherwise.
Definition at line 121 of file vtkStructuredVisibilityConstraint.h.
|
inline |
Sets the visibility flag of the given point/cell off. The first time blank is called, a new visibility array is created if it doesn't exist.
Definition at line 129 of file vtkStructuredVisibilityConstraint.h.
|
inline |
Sets the visibility flag of the given point/cell on.
Definition at line 146 of file vtkStructuredVisibilityConstraint.h.
|
virtual |
Get the dimensions used to initialize the object.
|
virtual |
Get the dimensions used to initialize the object.
|
inline |
Set the dimensions and set the Initialized flag to 1. Once an object is initialized, it's dimensions can not be changed anymore.
Definition at line 157 of file vtkStructuredVisibilityConstraint.h.
|
inline |
Allocates the internal visibility data-structure iff the object has been initialized.
Definition at line 108 of file vtkStructuredVisibilityConstraint.h.
void vtkStructuredVisibilityConstraint::SetVisibilityById | ( | vtkUnsignedCharArray * | vis | ) |
Set/Get the array used to store the visibility flags.
|
virtual |
Set/Get the array used to store the visibility flags.
void vtkStructuredVisibilityConstraint::ShallowCopy | ( | vtkStructuredVisibilityConstraint * | src | ) |
Copies the dimensions, the visibility array pointer and the initialized flag.
void vtkStructuredVisibilityConstraint::DeepCopy | ( | vtkStructuredVisibilityConstraint * | src | ) |
Copies the dimensions, the visibility array and the initialized flag.
|
inline |
Returns 0 if there is no visibility array (all cells/points are visible), 0 otherwise.
Definition at line 84 of file vtkStructuredVisibilityConstraint.h.
|
protected |
Definition at line 94 of file vtkStructuredVisibilityConstraint.h.
|
protected |
Definition at line 95 of file vtkStructuredVisibilityConstraint.h.
|
protected |
Definition at line 96 of file vtkStructuredVisibilityConstraint.h.
|
protected |
Definition at line 97 of file vtkStructuredVisibilityConstraint.h.