3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
BaseClassElement Struct Reference

BaseClassElement used to iterate over BaseClass items.
Typical pattern of usage:
. More...

#include <BaseClass.h>

Public Member Functions

void fill (void *_Ptr, void *_Extra, bool _vis, bool _ui, bool OnlyPointersMode)
 set defaults More...
 

Public Attributes

BaseClassBC
 pointer to exemplair More...
 
void * Ptr
 pointer to data. If class is directly castable it is equal to BC More...
 
void * Extra
 additional methadata More...
 
const char * ID
 registration name More...
 
DWORD Mask
 usage mask More...
 
bool Visible: 1
 visible in UI More...
 
bool ReadOnly: 1
 Read-only marked. More...
 
bool Serialize: 1
 should be serialized More...
 
bool CachedValue: 1
 for internal usage by BaseClass::GetElement(). It stores results of CONDITIONAL(...) result to avoid re-calculation on each step More...
 

Detailed Description

BaseClassElement used to iterate over BaseClass items.
Typical pattern of usage:
.

_EACH(ClassPointer, be){///be is BaseClassElement reference
///write some code there, for example seek for object that contains substring in it's name
///This is actually lambda function if you will look the macro.
///be is reference to BaseClassElement, you may get any ingormation about the field from there.
if(be->ID.IndexOf("MySubString")!=-1){
/// return true means exit out of the cycle _EACH ... _EACH_END
return true;
}
...or...
for(int i=0;i<N;i++){
if(BC->GetElement(be, i, BC, nullptr)){
if(be.Visible){
//....some ui job...
}
if(be.Serialize){
//....some sirialization job...
}
}
}

Member Function Documentation

void BaseClassElement::fill ( void *  _Ptr,
void *  _Extra,
bool  _vis,
bool  _ui,
bool  OnlyPointersMode 
)
inline

set defaults

References Extra, TagsList::GetConstantLocation(), ID, Ptr, Serialize, and Visible.

Member Data Documentation

bool BaseClassElement::CachedValue

for internal usage by BaseClass::GetElement(). It stores results of CONDITIONAL(...) result to avoid re-calculation on each step

void* BaseClassElement::Extra

additional methadata

Referenced by CreateControlWithBaseClass(), and fill().

DWORD BaseClassElement::Mask

usage mask

bool BaseClassElement::ReadOnly

Read-only marked.

Referenced by CreateControlWithBaseClass().

bool BaseClassElement::Serialize

should be serialized

Referenced by fill().

bool BaseClassElement::Visible

visible in UI

Referenced by CreateControlWithBaseClass(), and fill().


The documentation for this struct was generated from the following files: