Rhino C++ API
8.14
|
#include <opennurbs_subd.h>
Public Member Functions | |
ON_SubDComponentId ()=default | |
ON_SubDComponentId (const class ON_SubDEdge *e) | |
ON_SubDComponentId (const class ON_SubDFace *f) | |
ON_SubDComponentId (const class ON_SubDFace *f, unsigned face_corner_index) | |
ON_SubDComponentId (const class ON_SubDVertex *v) | |
ON_SubDComponentId (const ON_SubDComponentId &)=default | |
ON_SubDComponentId (ON_SubDComponentPtr cptr) | |
ON_SubDComponentId (ON_SubDComponentPtr::Type component_type, unsigned int component_id) | |
ON_SubDComponentId (ON_SubDComponentPtr::Type component_type, unsigned int component_id, ON__UINT_PTR dir) | |
ON_SubDComponentId (ON_SubDEdgePtr eptr) | |
ON_SubDComponentId (ON_SubDFacePtr fptr) | |
ON_SubDComponentId (ON_SubDFacePtr fptr, unsigned face_corner_index) | |
ON_SubDComponentId (ON_SubDVertexPtr vptr) | |
ON_SubDComponentId (unsigned face_id, ON__UINT_PTR face_dir, ON_SubDFaceCornerDex face_cdex) | |
~ON_SubDComponentId ()=default | |
unsigned int | ComponentDirection () const |
unsigned int | ComponentId () const |
const ON_SubDComponentPtr | ComponentPtr (const class ON_SubD &subd) const |
Get the referenced SubD component from a component id. More... | |
const ON_SubDComponentPtr | ComponentPtr (const class ON_SubD *subd) const |
Get the referenced SubD component from a component id. More... | |
ON_SubDComponentPtr::Type | ComponentType () const |
const ON_SubDEdge * | Edge (const class ON_SubD &subd) const |
const ON_SubDEdge * | Edge (const class ON_SubD *subd) const |
unsigned | EdgeId () const |
const ON_SubDEdgePtr | EdgePtr (const class ON_SubD &subd) const |
const ON_SubDEdgePtr | EdgePtr (const class ON_SubD *subd) const |
const ON_SubDFace * | Face (const class ON_SubD &subd) const |
const ON_SubDFace * | Face (const class ON_SubD *subd) const |
const ON_SubDFaceCornerDex | FaceCornerDex () const |
unsigned | FaceId () const |
const ON_SubDFacePtr | FacePtr (const class ON_SubD &subd) const |
const ON_SubDFacePtr | FacePtr (const class ON_SubD *subd) const |
bool | IsEdgeId () const |
bool | IsFaceId () const |
bool | IsNotSet () const |
bool | IsSet () const |
bool | IsVertexId () const |
ON_SubDComponentId & | operator= (const ON_SubDComponentId &)=default |
const ON_SubDComponentId | Reversed () const |
Create an ON_SubDComponentId that references the same SubD component but with the opposite value of this->ComponentDirection(). More... | |
const ON_wString | ToString (bool bUnsetIsEmptyString, bool bDirectionPrefix) const |
Returns a string cN where N is ComponentId() and c is v, e or f for a vertex, edge or face component. Examples: If ComponentType is vertex and ComponentId() is 17, then the string will be "v17". If ComponentType is face, ComponentId() is 49, and FaceCornerDex is not set, the string will be "f49". If ComponentType is face, ComponentId() is 49, and FaceCornerDex() is ON_SubDFaceCornerDex(2,3), the string will be "f49.2". More... | |
const ON_SubDVertex * | Vertex (const class ON_SubD &subd) const |
const ON_SubDVertex * | Vertex (const class ON_SubD *subd) const |
unsigned | VertexId () const |
const ON_SubDVertexPtr | VertexPtr (const class ON_SubD &subd) const |
const ON_SubDVertexPtr | VertexPtr (const class ON_SubD *subd) const |
Static Public Member Functions | |
static int | CompareTypeAndId (const ON_SubDComponentId &lhs, const ON_SubDComponentId &rhs) |
static int | CompareTypeAndIdAndDirection (const ON_SubDComponentId &lhs, const ON_SubDComponentId &rhs) |
static int | CompareTypeAndIdFromPointer (const ON_SubDComponentId *lhs, const ON_SubDComponentId *rhs) |
Static Public Attributes | |
static const ON_SubDComponentId | Unset |
type = unset and id = 0; More... | |
|
default |
|
default |
|
default |
ON_SubDComponentId::ON_SubDComponentId | ( | ON_SubDComponentPtr::Type | component_type, |
unsigned int | component_id | ||
) |
ON_SubDComponentId::ON_SubDComponentId | ( | ON_SubDComponentPtr::Type | component_type, |
unsigned int | component_id, | ||
ON__UINT_PTR | dir | ||
) |
ON_SubDComponentId::ON_SubDComponentId | ( | ON_SubDComponentPtr | cptr | ) |
ON_SubDComponentId::ON_SubDComponentId | ( | const class ON_SubDVertex * | v | ) |
ON_SubDComponentId::ON_SubDComponentId | ( | ON_SubDVertexPtr | vptr | ) |
ON_SubDComponentId::ON_SubDComponentId | ( | const class ON_SubDEdge * | e | ) |
ON_SubDComponentId::ON_SubDComponentId | ( | ON_SubDEdgePtr | eptr | ) |
ON_SubDComponentId::ON_SubDComponentId | ( | const class ON_SubDFace * | f | ) |
ON_SubDComponentId::ON_SubDComponentId | ( | ON_SubDFacePtr | fptr | ) |
ON_SubDComponentId::ON_SubDComponentId | ( | const class ON_SubDFace * | f, |
unsigned | face_corner_index | ||
) |
ON_SubDComponentId::ON_SubDComponentId | ( | ON_SubDFacePtr | fptr, |
unsigned | face_corner_index | ||
) |
ON_SubDComponentId::ON_SubDComponentId | ( | unsigned | face_id, |
ON__UINT_PTR | face_dir, | ||
ON_SubDFaceCornerDex | face_cdex | ||
) |
|
static |
|
static |
|
static |
unsigned int ON_SubDComponentId::ComponentDirection | ( | ) | const |
unsigned int ON_SubDComponentId::ComponentId | ( | ) | const |
const ON_SubDComponentPtr ON_SubDComponentId::ComponentPtr | ( | const class ON_SubD & | subd | ) | const |
Get the referenced SubD component from a component id.
subd | The subd containing the referenced component. |
const ON_SubDComponentPtr ON_SubDComponentId::ComponentPtr | ( | const class ON_SubD * | subd | ) | const |
Get the referenced SubD component from a component id.
subd | The subd containing the referenced component. |
ON_SubDComponentPtr::Type ON_SubDComponentId::ComponentType | ( | ) | const |
const ON_SubDEdge* ON_SubDComponentId::Edge | ( | const class ON_SubD & | subd | ) | const |
const ON_SubDEdge* ON_SubDComponentId::Edge | ( | const class ON_SubD * | subd | ) | const |
unsigned ON_SubDComponentId::EdgeId | ( | ) | const |
const ON_SubDEdgePtr ON_SubDComponentId::EdgePtr | ( | const class ON_SubD & | subd | ) | const |
const ON_SubDEdgePtr ON_SubDComponentId::EdgePtr | ( | const class ON_SubD * | subd | ) | const |
const ON_SubDFace* ON_SubDComponentId::Face | ( | const class ON_SubD & | subd | ) | const |
const ON_SubDFace* ON_SubDComponentId::Face | ( | const class ON_SubD * | subd | ) | const |
const ON_SubDFaceCornerDex ON_SubDComponentId::FaceCornerDex | ( | ) | const |
unsigned ON_SubDComponentId::FaceId | ( | ) | const |
const ON_SubDFacePtr ON_SubDComponentId::FacePtr | ( | const class ON_SubD & | subd | ) | const |
const ON_SubDFacePtr ON_SubDComponentId::FacePtr | ( | const class ON_SubD * | subd | ) | const |
bool ON_SubDComponentId::IsEdgeId | ( | ) | const |
bool ON_SubDComponentId::IsFaceId | ( | ) | const |
bool ON_SubDComponentId::IsNotSet | ( | ) | const |
Returns: true if type is unset or id is 0.
bool ON_SubDComponentId::IsSet | ( | ) | const |
Returns: true if id > 0 and type is set to vertex, edge or face.
bool ON_SubDComponentId::IsVertexId | ( | ) | const |
|
default |
const ON_SubDComponentId ON_SubDComponentId::Reversed | ( | ) | const |
Create an ON_SubDComponentId that references the same SubD component but with the opposite value of this->ComponentDirection().
const ON_wString ON_SubDComponentId::ToString | ( | bool | bUnsetIsEmptyString, |
bool | bDirectionPrefix | ||
) | const |
Returns a string cN where N is ComponentId() and c is v, e or f for a vertex, edge or face component. Examples: If ComponentType is vertex and ComponentId() is 17, then the string will be "v17". If ComponentType is face, ComponentId() is 49, and FaceCornerDex is not set, the string will be "f49". If ComponentType is face, ComponentId() is 49, and FaceCornerDex() is ON_SubDFaceCornerDex(2,3), the string will be "f49.2".
bUnsetIsEmptyString | If bUnsetIsEmptyString is truen, then an unset component id returns the empty string. Otherwise and unset component id returns "unset". |
bOrientationPrefix | If bDirectionPrefix is true, then the string begins with "+" when ComponentDirection() is 0 and "-" when ComponentDirection() is 1. |
const ON_SubDVertex* ON_SubDComponentId::Vertex | ( | const class ON_SubD & | subd | ) | const |
const ON_SubDVertex* ON_SubDComponentId::Vertex | ( | const class ON_SubD * | subd | ) | const |
unsigned ON_SubDComponentId::VertexId | ( | ) | const |
const ON_SubDVertexPtr ON_SubDComponentId::VertexPtr | ( | const class ON_SubD & | subd | ) | const |
const ON_SubDVertexPtr ON_SubDComponentId::VertexPtr | ( | const class ON_SubD * | subd | ) | const |
|
static |
type = unset and id = 0;