28 #ifndef vtkStructuredVisibilityConstraint_h 29 #define vtkStructuredVisibilityConstraint_h 62 void Initialize(
int dims[3]);
86 return this->VisibilityById ? 1 : 0;
110 if( !this->VisibilityById )
113 this->VisibilityById->SetNumberOfTuples( this->NumberOfIds );
114 for(
int i=0; i < this->NumberOfIds; ++i )
116 this->VisibilityById->SetValue( i, 1 );
125 return vis ? vis->GetValue(
id) : 1;
135 vis = this->VisibilityById;
137 for (
int i=0; i<this->NumberOfIds; ++i)
139 this->VisibilityById->SetValue(i, 1);
142 vis->SetValue(
id, 0);
153 vis->SetValue(
id, 1);
159 if (this->Initialized)
163 for (
int i=0; i<3; i++)
165 this->Dimensions[i] = dims[i];
167 this->NumberOfIds =
static_cast<vtkIdType>(dims[0])*
168 static_cast<vtkIdType>(dims[1])*
170 this->Initialized = 1;
abstract base class for most VTK objects
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
virtual void SetNumberOfTuples(vtkIdType number)=0
unsigned char IsVisible(vtkIdType id)
#define vtkTypeMacro(thisClass, superclass)
unsigned char Initialized
void Initialize(int dims[3])
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
vtkUnsignedCharArray * VisibilityById
#define vtkGetObjectMacro(name, type)
dynamic, self-adjusting array of unsigned char
static vtkUnsignedCharArray * New()
unsigned char IsConstrained()
helper object to manage the visibility of points and cells
void UnBlank(vtkIdType id)
#define vtkGetVectorMacro(name, type, count)
#define VTKCOMMONDATAMODEL_EXPORT