Go to the source code of this file.
◆ ON__SET__THIS__PTR
#define ON__SET__THIS__PTR |
( |
| ptr | ) |
if (ptr) *((void**)this) = ptr |
◆ ON_CLASS_ID
◆ ON_OBJECT_DECLARE
#define ON_OBJECT_DECLARE |
( |
| cls | ) |
|
Value: protected: \
static void* m_s_##cls##_ptr; \
public: \
\
\
\
\
\
static const cls * Cast(
const ON_Object* ); \
\
\
\
\
\
private: \
virtual ON_Object* DuplicateObject()
const; \
\
\
\
\
\
\
public: \
\
Copies the current selection to the clipboard.
Definition Copy.js:12
Copies the current selection to the clipboard.
Definition Duplicate.js:12
Definition opennurbs_object.h:42
Definition opennurbs_object.h:393
◆ ON_OBJECT_IMPLEMENT
#define ON_OBJECT_IMPLEMENT |
( |
| cls, |
|
|
| basecls, |
|
|
| uuid ) |
Value: void* cls::m_s_##cls##_ptr = 0;\
static ON_Object* CreateNew##cls() {
return new cls();} \
const ON_ClassId cls::m_##cls##_class_id(#cls,#basecls,CreateNew##cls,cls::Copy##cls,uuid);\
const cls * cls::Cast(
const ON_Object* p) {
return(p&&p->
IsKindOf(&cls::m_##cls##_class_id))?(
const cls *)p:0;} \
const ON_ClassId* cls::ClassId()
const {
return &cls::m_##cls##_class_id;} \
ON_Object* cls::DuplicateObject()
const {cls* p =
new cls();
if (p) *p=*
this;
return p;} \
bool cls::Copy##cls(
const ON_Object* src,
ON_Object* dst ){cls* d;
const cls*
s;
if (0!=(
s=cls::Cast(src))&&0!=(d=cls::Cast(dst))) {d->cls::operator=(*s);
return true;}
return false;} \
cls * cls::Duplicate() const {return static_cast<cls *>(DuplicateObject());}
ON_BOOL32 IsKindOf(const ON_ClassId *pClassId) const
Definition opennurbs_object.cpp:1606
char s
Definition opennurbs_string.cpp:32
◆ ON_VIRTUAL_OBJECT_IMPLEMENT
#define ON_VIRTUAL_OBJECT_IMPLEMENT |
( |
| cls, |
|
|
| basecls, |
|
|
| uuid ) |
Value: void* cls::m_s_##cls##_ptr = 0;\
const ON_ClassId cls::m_##cls##_class_id(#cls,#basecls,0,0,uuid);\
const cls * cls::Cast(
const ON_Object* p) {
return(p&&p->
IsKindOf(&cls::m_##cls##_class_id))?(
const cls *)p:0;} \
const ON_ClassId* cls::ClassId()
const {
return &cls::m_##cls##_class_id;} \
ON_Object* cls::DuplicateObject()
const {
return 0;} \
cls * cls::Duplicate() const {return static_cast<cls *>(DuplicateObject());}
◆ ON_Vtable_func
typedef int(* ON_Vtable_func) (void) |
◆ ON_ClassVtable()
◆ ON_GetMostRecentClassIdCreateUuid()