#include <vtkStructuredVisibilityConstraint.h>
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 35 of file vtkStructuredVisibilityConstraint.h.
vtkStructuredVisibilityConstraint::vtkStructuredVisibilityConstraint | ( | ) | [protected] |
vtkStructuredVisibilityConstraint::~vtkStructuredVisibilityConstraint | ( | ) | [protected] |
static vtkStructuredVisibilityConstraint* vtkStructuredVisibilityConstraint::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
virtual const char* vtkStructuredVisibilityConstraint::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkObject.
static int vtkStructuredVisibilityConstraint::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 vtkObject.
virtual int vtkStructuredVisibilityConstraint::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 vtkObject.
static vtkStructuredVisibilityConstraint* vtkStructuredVisibilityConstraint::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkObject.
void vtkStructuredVisibilityConstraint::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
unsigned char vtkStructuredVisibilityConstraint::IsVisible | ( | vtkIdType | id | ) | [inline] |
Returns 1 is the point/cell is visible, 0 otherwise.
Definition at line 103 of file vtkStructuredVisibilityConstraint.h.
void vtkStructuredVisibilityConstraint::Blank | ( | vtkIdType | id | ) | [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 111 of file vtkStructuredVisibilityConstraint.h.
void vtkStructuredVisibilityConstraint::UnBlank | ( | vtkIdType | id | ) | [inline] |
Sets the visibility flag of the given point/cell on.
Definition at line 128 of file vtkStructuredVisibilityConstraint.h.
virtual int* vtkStructuredVisibilityConstraint::GetDimensions | ( | ) | [virtual] |
Get the dimensions used to initialize the object.
virtual void vtkStructuredVisibilityConstraint::GetDimensions | ( | int | data[3] | ) | [virtual] |
Get the dimensions used to initialize the object.
void vtkStructuredVisibilityConstraint::Initialize | ( | int | dims[3] | ) | [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 139 of file vtkStructuredVisibilityConstraint.h.
void vtkStructuredVisibilityConstraint::SetVisibilityById | ( | vtkUnsignedCharArray * | vis | ) |
Set/Get the array used to store the visibility flags.
virtual vtkUnsignedCharArray* vtkStructuredVisibilityConstraint::GetVisibilityById | ( | ) | [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.
unsigned char vtkStructuredVisibilityConstraint::IsConstrained | ( | ) | [inline] |
Returns 0 if there is no visibility array (all cells/points are visible), 0 otherwise.
Definition at line 79 of file vtkStructuredVisibilityConstraint.h.
Definition at line 89 of file vtkStructuredVisibilityConstraint.h.
int vtkStructuredVisibilityConstraint::Dimensions[3] [protected] |
Definition at line 90 of file vtkStructuredVisibilityConstraint.h.
Definition at line 91 of file vtkStructuredVisibilityConstraint.h.
unsigned char vtkStructuredVisibilityConstraint::Initialized [protected] |
Definition at line 92 of file vtkStructuredVisibilityConstraint.h.