61 #ifndef vtkSubsetInclusionLattice_h 62 #define vtkSubsetInclusionLattice_h 91 std::string Serialize()
const;
97 bool Deserialize(
const std::string& data);
98 bool Deserialize(
const char* data);
109 void Merge(
const std::string& state);
125 int AddNode(
const char* name,
int parent = 0);
132 int AddNodeAtPath(
const char* path);
144 bool AddCrossLink(
int src,
int dst);
162 int FindNode(
const char* path)
const;
189 return this->GetSelectionState(this->FindNode(path));
196 bool Select(
const char* path);
202 bool Deselect(
const char* path);
209 bool Select(
int node);
210 bool Deselect(
int node);
216 void ClearSelections();
226 bool SelectAll(
const char* path);
227 bool DeselectAll(
const char* path);
239 std::vector<int> GetChildren(
int node)
const;
245 int GetParent(
int node,
int* childIndex =
nullptr)
const;
250 const char* GetNodeName(
int node)
const;
309 vtkInternals* Internals;
310 friend class vtkInternals;
312 void TriggerSelectionChanged(
int node);
A directed acyclic graph to manage data hierarchy and relationships between hierarchy nodes...
#define VTKPVVTKEXTENSIONSCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
vtkTypeUInt64 vtkMTimeType
std::map< std::string, bool > SelectionType
This defines the type for selection states for nodes exposed by API.
SelectionStates GetSelectionState(const char *path) const
Get the current state for a node given its path.
void operator=(const vtkObjectBase &)