CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
25 #ifndef ODTRVISVISUALSTYLE
26 #define ODTRVISVISUALSTYLE
100 cstr(pNew, pStr, nLen); pNew[nLen] = 0;
114 while (*pStrLeft && *pStr)
116 if (*pStrLeft != *pStr)
120 return *pStrLeft == *pStr;
129 while (pStr[nLen]) nLen++;
168 for (
OdUInt32 nType = 0; nType < nTypes; nType++)
189 void set(
bool bVal,
bool bSet =
true)
213 void set(
double dVal,
bool bSet =
true)
275 SETBIT(flags, nFlag, bSet);
365 static void lwd_mod(
int& curExtension) { curExtension = (curExtension + 1) / 2; }
368 switch (curExtension)
381 if (curExtension > minLimit)
389 if (curExtension > maxExtension)
390 maxExtension = curExtension;
420 for (
OdUInt32 nProp = 0; nProp < nProps; nProp++)
432 for (
OdUInt32 nProp = 0; nProp < nProps; nProp++)
434 if (from.
m_props[nProp].isModified())
437 m_props[nProp].setModified(
false);
476 for (
OdUInt32 nProp = 0; nProp < nProps; nProp++)
491 for (
OdUInt32 nProp = 0; nProp < nProps; nProp++)
492 pProps[nProp].setModified(bSet);
499 for (
OdUInt32 nProp = 0; nProp < nProps; nProp++)
501 if (pProps[nProp].isModified())
520 if (nResolved) *nResolved = 0;
if (nUnresolved) *nUnresolved = 0;
524 for (
OdUInt32 nProp = 0; nProp < nProps; nProp++)
529 if (owner.
m_props[nProp].operation())
532 if (nResolved) (*nResolved)++;
534 else if (nUnresolved)
546 for (
OdUInt32 nProp = 0; nProp < nProps; nProp++)
548 if (!
m_props[nProp].operation())
558 for (
OdUInt32 nProp = 0; nProp < nProps; nProp++)
564 if (nSubstituted) (*nSubstituted)++;
566 else if (nUnresolved && !
m_props[nProp].operation())
596 int maxExtension = 0;
613 #endif // ODTRVISVISUALSTYLE
#define GETBIT(flags, bit)
bool isValidType(OdGiVariant::VariantType type) const
void checkType(OdGiVariant::VariantType type) const
void setInt(OdInt32 iVal)
bool OdEqual(double x, double y, double tol=1.e-10)
void setUInt(OdUInt32 uVal)
bool getFlag(OdUInt32 nFlag) const
OdUInt32 numProperties() const
void setModified(bool bSet)
void setDouble(double dVal)
struct OdTrVisVisualStyleProperty::DataType m_type
bool cmpString(const OdChar *pStr) const
GLuint const GLchar * name
void setInherit(bool bSet)
OdTrVisVisualStyle(const OdTrVisVisualStyle &from)
OdTrVisVisualStyleProperty(const OdTrVisVisualStyleProperty &from)
GLuint GLsizei GLsizei GLint GLenum * type
void setPolygonOffsetEnabled(bool bSet)
const OdString & name() const
void setInternal(bool bSet)
void set(double dVal, bool bSet=true)
#define SETBIT(flags, bit, value)
OdTrVisVisualStyleProperty & property(OdGiVisualStyleProperties::Property prop)
OdTrVisVisualStyle & operator=(const OdTrVisVisualStyle &from)
static void lwd_mod(int &curExtension)
void setFlag(OdUInt32 nFlag, bool bSet)
OdGiVisualStyle::Type type() const
OdGiVariant::VariantType getType() const
bool backSubstitution(const OdTrVisVisualStyle &child, OdUInt32 *nSubstituted=NULL, OdUInt32 *nUnresolved=NULL)
void set(ODCOLORREF cVal, ColorType type, bool bSet=true)
void copyType(const OdTrVisVisualStyle &from)
void setDepthBufferEnabled(bool bSet)
const OdChar * getString() const
void setPropertiesNumber(OdUInt32 nProps)
void checkLength(OdUInt32 nProp) const
void setName(const OdString &name)
OdGiVisualStyle::Type m_type
void setString(const OdChar *pStr)
void cstr(OdChar *pStr, const OdChar *pStr_, OdUInt32 nLen) const
bool compare(const OdTrVisVisualStyle &with, bool bCmpType=false, bool bCmpProps=true) const
void resetModified(bool bSet=false)
void setType(OdGiVisualStyle::Type tpy)
void copyModified(const OdTrVisVisualStyle &from, bool bCopyType=true)
OdUInt32 lclk(const OdChar *pStr) const
void setPropertyNumber(OdUInt32 propNum)
OdTrVisVisualStyleProperty & operator=(const OdTrVisVisualStyleProperty &from)
void blockExecution() const
OdGiVariant::VariantType type() const
void copyFrom(const OdTrVisVisualStyleProperty &from, bool bSet=true)
bool operator!=(const OdTrVisVisualStyle &with) const
OdVector & setPhysicalLength(size_type physicalLength)
void set(const char *sVal, bool bSet=true)
void set(bool bVal, bool bSet=true)
void resize(size_type logicalLength, const T &value)
OdUInt32 getPropNumber() const
static bool run(const OdTrVisVisualStyle &pVS, OdGiVisualStyleProperties::Property EdgeFlags, OdUInt32 EdgeFlag, OdGiVisualStyleProperties::Property PropName, int minLimit, ModifierType modType, int &maxExtension)
OdTrVisVisualStyleProperty()
const OdTrVisVisualStyleProperty & property(OdGiVisualStyleProperties::Property prop) const
OdUInt32 propertyNumber() const
const T * asArrayPtr() const
void setType(OdGiVariant::VariantType type)
bool compare(const OdTrVisVisualStyleProperty &with, bool bCmpVal=true, bool bCmpOp=false, bool bCmpNum=false) const
int computeExtentsEnlargement() const
void setType(OdGiVariant::VariantType type)
void setPropSet(bool bSet=true)
void setStencilBufferEnabled(bool bSet)
const OdChar * getString() const
void set(const OdString &sVal, bool bSet=true)
void setOperation(bool bSet)
void copyFrom(const OdTrVisVisualStyle &from, bool bCopyType=true, bool bCopyDiff=false)
void setLightingEnabled(bool bSet)
void set(const OdChar *sVal, bool bSet=true)
void setTemporary(bool bSet)
union OdTrVisVisualStyleProperty::TypeData m_data
void setPropNumber(OdUInt32 num)
void computeRenderMode(OdTrVisRenderMode &pRM, bool bBestMatch=false) const
OdUInt8 getBoolAsInt() const
bool operator==(const OdTrVisVisualStyleProperty &with) const
static void jitter_mod(int &curExtension)
OdUInt32 countModified() const
bool operator==(const OdTrVisVisualStyle &with) const
ColorType getColorType() const
void setModified(bool bSet)
bool operator!=(const OdTrVisVisualStyleProperty &with) const
const OdChar * c_str() const
~OdTrVisVisualStyleProperty()
void setFaceNormalsEnabled(bool bSet)
void checkType(const OdGiVariant::VariantType *pTypes, OdUInt32 nTypes) const
ODCOLORREF getColor(ColorType *pType=NULL) const
bool resolveInheritance(const OdTrVisVisualStyle &owner, OdUInt32 *nResolved=NULL, OdUInt32 *nUnresolved=NULL)
OdVector< OdTrVisVisualStyleProperty > PropsCont
OdUInt32 countUnresolved() const
void set(OdInt32 iVal, bool bSet=true)
void set(OdUInt32 uVal, bool bSet=true, bool bAsColor=false)