Enable or disable the Group Mode.
</Documentation>
</IntVectorProperty>
+ <IntVectorProperty name="PreSelectedID"
+ command="GetPreselectedId"
+ information_only="1"
+ number_of_elements="0">
+ <Documentation>
+ PreSelected solid ID
+ </Documentation>
+ </IntVectorProperty>
<Property command="Reset" name="Reset"/>
<Property command="BeginSelect" name="BeginSelect"/>
<Property command="EndSelect" name="EndSelect"/>
this->ForceUpdate();
}
}
+
+//----------------------------------------------------------------------------
+
+vtkIdType vtkCADMapper::GetPreselectedId()
+{
+ return this->PreselectedCellId;
+}
*/
void ResetSelection();
+ /**
+ * Get PreSelected Id
+ */
+ vtkIdType GetPreselectedId();
+
protected:
vtkCADMapper() = default;
~vtkCADMapper() = default;
void AddCellIdsToSelectionPrimitives(vtkPolyData* poly, const char* arrayName,
unsigned int processId, unsigned int compositeIndex, vtkIdType selectedId) override;
+ /**
+ * Get Selected Id list
+ */
+ //vtkIdType GetSelectedId();
+
/**
* Initialise the primitive colors using color array stored in the input polydata.
* Also initialize the opacity values (depending on current mode).
mapper->SetPointIdArrayName(pointArray ? pointArray : "vtkOriginalPointIds");
mapper->SetCellIdArrayName(cellArray ? cellArray : "vtkOriginalCellIds");
}
+
+//----------------------------------------------------------------------------
+vtkIdType vtkCADRepresentation::GetPreselectedId()
+{
+ return this->Mapper->GetPreselectedId();
+}
\ No newline at end of file
//void AddShape(vtkIdType groupId, vtkIdType cellId);
void SetArrayIdNames(const char* pointArray, const char* cellArray) override;
+
+ /**
+ * Get PreSelected Id
+ */
+
+ vtkIdType GetPreselectedId();
+
protected:
vtkCADRepresentation();
~vtkCADRepresentation() = default;