Rhino C++ API
7.26
|
Simple arrays of ON_SubD_ComponentIdTypeAndTag elements are used to save original tag values so the can be retrieved after complex editing operations. More...
#include <opennurbs_subd.h>
Public Member Functions | |
ON_SubDComponentPtr::Type | ComponentType () const |
unsigned | EdgeId () const |
ON_SubDEdgeTag | EdgeTag () const |
unsigned | FaceId () const |
unsigned char | FaceTag () const |
const ON_wString | ToString () const |
unsigned | VertexId () const |
ON_SubDVertexTag | VertexTag () const |
Static Public Attributes | |
static const ON_SubD_ComponentIdTypeAndTag | Unset |
Simple arrays of ON_SubD_ComponentIdTypeAndTag elements are used to save original tag values so the can be retrieved after complex editing operations.
|
static |
Description: Dictionary compare on ComponentType() and ComponentId() in that order.
|
static |
Description: Dictionary compare on ComponentType(), ComponentId(), and tag in that order.
ON_SubDComponentPtr::Type ON_SubD_ComponentIdTypeAndTag::ComponentType | ( | ) | const |
|
static |
Parameters: e - [in] If e->m_edge_tag is ON_SubDEdgeTag::SmoothX, the ON_SubD_ComponentIdTypeAndTag EdgeTag() will be ON_SubDEdgeTag::Smoooth. Returns: If e is not nullptr and e->m_id > 0, a ON_SubD_ComponentIdTypeAndTag with EdgeTag() = e->m_edge_tag is returned. Otherwise ON_SubD_ComponentIdTypeAndTag::Unset is returned.
|
static |
Parameters: edge_id - [in] etag - [in] If etag is ON_SubDEdgeTag::SmoothX, the ON_SubD_ComponentIdTypeAndTag EdgeTag() will be ON_SubDEdgeTag::Smoooth. Returns: If edge_id > 0, a ON_SubD_ComponentIdTypeAndTag with EdgeTag() = etag is returned. Otherwise ON_SubD_ComponentIdTypeAndTag::Unset is returned.
|
static |
Parameters: f - [in] ftag - [in] Any value and the interpretation is up to the context using the ON_SubD_ComponentIdTypeAndTag. Returns: If f is no nullptr and f->m_id > 0, a ON_SubD_ComponentIdTypeAndTag with FaceTag() = ftag is returned. Otherwise ON_SubD_ComponentIdTypeAndTag::Unset is returned. Remarks: SubD faces do not have a tag in the sense that vertices and edges do, but in complex editing tasks it is sometimes useful to include faces in an array of ON_SubD_ComponentIdTypeAndTag elements.
|
static |
Parameters: face_id - [in] ftag - [in] Any value and the interpretation is up to the context using the ON_SubD_ComponentIdTypeAndTag. Returns: If face_id > 0, a ON_SubD_ComponentIdTypeAndTag with FaceTag() = vtag is returned. Otherwise ON_SubD_ComponentIdTypeAndTag::Unset is returned. Remarks: SubD faces do not have a tag in the sense that vertices and edges do, but in complex editing tasks it is sometimes useful to include faces in an array of ON_SubD_ComponentIdTypeAndTag elements.
|
static |
Returns: If v is no nullptr and v->m_id > 0, a ON_SubD_ComponentIdTypeAndTag with VertexTag() = v->m_vertex_tag is returned. Otherwise ON_SubD_ComponentIdTypeAndTag::Unset is returned.
|
static |
Returns: If vertex_id > 0, a ON_SubD_ComponentIdTypeAndTag with VertexTag() = vtag is returned. Otherwise ON_SubD_ComponentIdTypeAndTag::Unset is returned.
unsigned ON_SubD_ComponentIdTypeAndTag::EdgeId | ( | ) | const |
ON_SubDEdgeTag ON_SubD_ComponentIdTypeAndTag::EdgeTag | ( | ) | const |
Returns: ON_SubDEdgeTag::Unset, ON_SubDEdgeTag::Smooth, or ON_SubDEdgeTag::Crease.
unsigned ON_SubD_ComponentIdTypeAndTag::FaceId | ( | ) | const |
unsigned char ON_SubD_ComponentIdTypeAndTag::FaceTag | ( | ) | const |
|
static |
Parameters: e - [in] sorted_tags[] - [in] Array sorted by ON_SubD_ComponentIdTypeAndTag::CompareTypeAndId(). Returns: If e is in sorted_tags[], the EdgeTag() from from sorted_tags[] is returned. Otherwise e->m_edge_tag is returned.
|
static |
Parameters: edge_id - [in] sorted_tags[] - [in] Array sorted by ON_SubD_ComponentIdTypeAndTag::CompareTypeAndId(). Returns: If edge_id is in sorted_tags[], the EdgeTag() from from sorted_tags[] is returned. Otherwise ON_SubDEdgeTag::Unset is returned.
|
static |
Parameters: f - [in] sorted_tags[] - [in] Array sorted by ON_SubD_ComponentIdTypeAndTag::CompareTypeAndId(). Returns: If f is in sorted_tags[], the FaceTag() from from sorted_tags[] is returned. Otherwise 0 is returned.
|
static |
Parameters: face_id - [in] sorted_tags[] - [in] Array sorted by ON_SubD_ComponentIdTypeAndTag::CompareTypeAndId(). Returns: If face_id is in sorted_tags[], the FaceTag() from from sorted_tags[] is returned. Otherwise ON_SubDFaceTag::Unset is returned.
|
static |
Parameters: v - [in] sorted_tags[] - [in] Array sorted by ON_SubD_ComponentIdTypeAndTag::CompareTypeAndId(). Returns: If v is in sorted_tags[], the VertexTag() from from sorted_tags[] is returned. Otherwise v->m_vertex_tag is returned.
|
static |
Parameters: vertex_id - [in] sorted_tags[] - [in] Array sorted by ON_SubD_ComponentIdTypeAndTag::CompareTypeAndId(). Returns: If vertex_id is in sorted_tags[], the VertexTag() from from sorted_tags[] is returned. Otherwise ON_SubDVertexTag::Unset is returned.
const ON_wString ON_SubD_ComponentIdTypeAndTag::ToString | ( | ) | const |
unsigned ON_SubD_ComponentIdTypeAndTag::VertexId | ( | ) | const |
ON_SubDVertexTag ON_SubD_ComponentIdTypeAndTag::VertexTag | ( | ) | const |
|
static |