HSubentitySelItem

class HSubentitySelItem

Inherits from: HSmartSelItem

Methods

HSubentitySelItem::HSubentitySelItem(HC_KEY key, HSelectionSet *selection_set, int incl_count, HC_KEY incl_keys[], int face_count, int const faces[], int vertex_count, int const vertex1[], int const vertex2[], bool highlight_faces = true, bool highlight_vertices = true, bool highlight_edges = true, bool maintain_maps = false)

Constructs a HSubentitySelItem object.

Parameters

key: HOOPS key to selection item.

selection_set: A pointer to the HOOPS selection set which owns this selection item.

incl_count: Number of include keys in the selection item segment path.

incl_keys: An array of HOOPS keys of all the include keys in the selection item path.

face_count: The number of faces to be retained from the source shell, usually returned from HC_Show_Selection_Elements().

faces: The faces to be retained from the source shell, usually returned from HC_Show_Selection_Elements().

vertex_count: The number of vertices to be retained from the source shell, usually returned from HC_Show_Selection_Elements(). Vertices required by faces, above, will be retained in all cases.

vertex1: The vertices to be retained from the source shell, usually returned from HC_Show_Selection_Elements().

vertex2: If supplied, vertices in this array will also be retained and an edge will be defined between the vertex in this array and the corresponding vertex in vertex1.

highlight_faces: If true and if faces are supplied, faces will be highlighted

highlight_vertices: If true and if vertices are supplied, vertices will be highlighted

highlight_edges: If true and if both vertex arrays are supplied, edges will be highlighted

maintain_maps: If true, a mapping from the points and faces of the original shell will be retained after highlighting. This can be useful for performing operations on the original geometry, but will use more memory.

HSubentitySelItem::~HSubentitySelItem()
virtual char const *HSubentitySelItem::GetName() const

const virtual

Returns

A character pointer denoting the name which is “HRegionSelItem.”
virtual bool HSubentitySelItem::Equals(HSelectionItem const *i2) const

const virtual

Parameters

i2: An HSelectionItem object to be compared with this object.

Returns

True if the two subentity selection elements are equal.
virtual bool HSubentitySelItem::Similar(HSelectionItem const *i2) const

const virtual

Parameters

i2: An HSelectionItem object to be compared with this object.

Returns

True if the two subentity selection elements refer to the same object. They may or may not have the same subentity details.
virtual bool HSubentitySelItem::Highlight()

virtual

Call this function to highlight the selection region.

Returns

A true if the item was successfully highlighted.
virtual bool HSubentitySelItem::UnHighlight()

virtual

Call this function to unhighlight the selection item.

Returns

A true if the item was successfully unhighlighted.
virtual bool HSubentitySelItem::UnHighlight(HSubentitySelItem const *remove_sel)

virtual

Call this function to unhighlight select elements from this selection item.

Returns

true if the elements were successfully unhighlighted.
bool HSubentitySelItem::IsEmpty()

Returns

true if the selection item has no faces, vertices, or edges remaining in its highlight list.
virtual bool HSubentitySelItem::Delete()

virtual

Call this function to delete the selection item and the selected portion of the geometry.

Returns

True if the item was successfully deleted.
int HSubentitySelItem::GetFaceCount() const

const

void HSubentitySelItem::GetFaces(int faces[])
int HSubentitySelItem::GetVertexCount() const

const

void HSubentitySelItem::GetVertices(int vertex1[], int vertex2[])
bool HSubentitySelItem::MaintainMaps()
void HSubentitySelItem::MaintainMaps(bool maintain_maps)
void HSubentitySelItem::GetMapCounts(int *face_map_count, int *vertex_map_count)
void HSubentitySelItem::GetMaps(int face_map[], int vertex_map[])
void HSubentitySelItem::MergeMaps(HSubentitySelItem *that)
HSubentitySelItem::HSubentitySelItem(bool is_ooc, HC_KEY key, HSelectionSet *selection_set, int incl_count, HC_KEY incl_keys[], int face_count, int const faces[], int vertex_count, int const vertex1[], int const vertex2[], bool highlight_faces = true, bool highlight_vertices = true, bool highlight_edges = true, bool maintain_maps = false)

protected

void HSubentitySelItem::InitCommon(int const *faces, int const *vertex1, int const *vertex2, bool highlight_faces, bool highlight_vertices, bool highlight_edges)

private

Variables

int HSubentitySelItem::m_face_count

private

int
int *HSubentitySelItem::m_faces

private

int
int HSubentitySelItem::m_vertex_count

private

int
int *HSubentitySelItem::m_vertex1

private

int
int *HSubentitySelItem::m_vertex2

private

int
bool HSubentitySelItem::m_maintain_maps

private

bool
int HSubentitySelItem::m_vertex_map_count

private

int
SubentityMapStd *HSubentitySelItem::m_vertex_map

private

SubentityMapStd
int HSubentitySelItem::m_face_map_count

private

int
SubentityMapStd *HSubentitySelItem::m_face_map

private

SubentityMapStd
int HSubentitySelItem::m_subentity_highlight

private

int