36 #ifndef vtkSMSILModel_h 37 #define vtkSMSILModel_h 39 #include "vtkPVServerManagerCoreModule.h" 52 void PrintSelf(ostream& os, vtkIndent indent);
72 void Initialize(vtkGraph* sil);
73 vtkGetObjectMacro(SIL, vtkGraph);
103 int GetNumberOfChildren(vtkIdType vertexid);
109 vtkIdType GetChildVertex(vtkIdType parentid,
int child_index);
116 vtkIdType GetParentVertex(vtkIdType parent);
121 const char* GetName(vtkIdType vertex);
126 int GetCheckStatus(vtkIdType vertex);
133 bool SetCheckState(vtkIdType vertex,
int status);
136 vtkIdType vertex = this->FindVertex(name);
139 return this->SetCheckState(vertex, status);
141 vtkErrorMacro(
"Failed to locate " << name);
168 vtkIdType FindVertex(
const char* name);
170 void GetLeaves(std::set<vtkIdType>& leaves, vtkIdType root,
bool traverse_cross_edges);
176 void UpdateProperty();
177 void OnPropertyModified();
178 void OnDomainModified();
181 void Check(vtkIdType vertexid,
bool checked, vtkIdType inedgeid = -1);
186 void UpdateCheck(vtkIdType vertexid);
190 void SetSIL(vtkGraph*);
203 vtkInternals* Internals;
bool SetCheckState(const char *name, int status)
Set the check state for a vertex.
void PrintSelf(ostream &os, vtkIndent indent)
property representing a vector of strings
is a helper for to work with SILs.
superclass for most server manager classes
vtkCommand * PropertyObserver
vtkSMStringVectorProperty * Property
vtkCommand * DomainObserver
static vtkSMObject * New()
proxy for a VTK object(s) on a server