C3D Toolkit  Kernel - 109696, Vision - 2.4.0.76

Identifiers of the parts of the solid. More...

#include <part_solid.h>

+ Inheritance diagram for MbPartSolidIndices:
+ Collaboration diagram for MbPartSolidIndices:

Public Types

enum  SelectionState { ss_Undefined = 0, ss_NoSelection, ss_AllSelection, ss_AllMaxSizeSelection }
 Selection state. More...
 

Public Member Functions

 MbPartSolidIndices ()
 Empty constructor.
 
 MbPartSolidIndices (const MbPartSolidIndices &)
 Copy-constructor copies data.
 
bool IsEmpty () const
 Whether set is empty?
 
bool IsAllValid () const
 Whether set is correct.
 
bool IsValidIndex (size_t k) const
 Whether k-th index of part is correct.
 
bool IsExistIndex (size_t k) const
 Whether k-th index of part exists.
 
bool IsAllSelected () const
 Whether all the indices are selected.
 
bool SetAllSelected (bool s) const
 Set the selection state for all the indices.
 
bool IsSelected (size_t k) const
 Whether index is selected.
 
bool SetSelected (size_t k, bool s) const
 Set the selection state of index.
 
SelectionState GetSelectionState () const
 Get the selection state of indices.
 
bool SetSelectionState (SelectionState selState) const
 Set the selection state of indices.
 
bool CheckSelectionState () const
 Set total selection state from data.
 
ptrdiff_t GetOwnIndex (size_t k) const
 Get own index of the part of the solid.
 
ptrdiff_t GetMaxOwnIndex () const
 Get max own index of solid parts in the set.
 
bool GetIdPath (size_t k, uint &id, MbPath &path) const
 Get identifier and path for k-th index of part.
 
bool GetPartIndex (size_t k, MbPartSolidIndex &partIndex) const
 Get a copy of the index.
 
bool AddPartIndex (const MbPartSolidIndex &partIndex)
 Add a copy of the index.
 
MbPartSolidIndexDetachPartIndex (size_t k)
 Detach index.
 
bool AbsorbPartIndex (MbPartSolidIndex *&)
 Absorb index.
 
bool DetachPartIndices (uint id, const MbPath &path, MbPartSolidIndices &)
 Detach indices by identifier and path.
 
bool DeletePartIndices (uint id, const MbPath &path)
 Delete indices by identifier and path.
 
bool AddPartIndices (const MbPartSolidIndices &)
 Add copies of indices. More...
 
size_t Find (const MbPartSolidIndex &) const
 Find by address or content.
 
size_t Find (uint id, const MbPath &path, ptrdiff_t index) const
 Find by identifiers.
 
void RemoveBadIndices ()
 Remove bad indices.
 
void RemoveAllIndices ()
 Remove all the vertices.
 
void RemoveLostIndices (const MbPath &existPath, SArray< uint > &existIds)
 Delete by existing path those indices of parts which are not contained in the list of identifiers.
 
bool IsAnyMultiSolid () const
 Get flag (when solids from parts are in the set).
 
void SetAnyMultiSolid (bool anyMulit, bool setAny) const
 Set flag (when solids from parts are in the set).
 
bool IsEditState () const
 Is in the editing mode?
 
void SetEditState (bool b)
 Set flag "Editing mode".
 

Protected Attributes

SelectionState selState
 State of identifiers selection.
 
bool anyMulti
 Working flag (solids from parts are in the set).
 
bool editState
 Working flag (mode of solid editing).
 

Detailed Description

Identifiers of the parts of the solid.

Identifier set of the parts of the solid.

Member Enumeration Documentation

◆ SelectionState

Selection state.

Enumerator
ss_Undefined 

State is not defined.

ss_NoSelection 

Identifiers are not selected.

ss_AllSelection 

All the identifiers are selected.

ss_AllMaxSizeSelection 

The identifier with the biggest part is selected.

Member Function Documentation

◆ AddPartIndices()

bool MbPartSolidIndices::AddPartIndices ( const MbPartSolidIndices )

Add copies of indices.

Absorb indices.


The documentation for this class was generated from the following file: