C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Classes | |
class | MbRGBA |
Color value in the RGBA color model. More... | |
class | MbColor |
Color. More... | |
class | MbWidth |
Thickness of drawing lines. More... | |
class | MbStyle |
Style of drawing lines. More... | |
class | MbVisual |
Material properties. More... | |
class | MbWireCount |
The number of u-mesh and v-mesh drawing lines. More... | |
class | MbCommonAttribute |
Common attribute - the base class. More... | |
class | MbBoolAttribute |
Bool attribute. More... | |
class | MbIntAttribute |
Int attribute. More... | |
class | MbInt64Attribute |
Int64 attribute. More... | |
class | MbDoubleAttribute |
Double attribute. More... | |
class | MbStringAttribute |
String attribute. More... | |
class | MbBinaryAttribute |
Binary attribute. More... | |
class | MbInt32VectorAttribute |
Array of integer (int32) values attribute. More... | |
class | MbInt64VectorAttribute |
Array of integer (int64) values attribute. More... | |
class | MbDoubleVectorAttribute |
Array of real (double) values attribute. More... | |
class | MbDoubleRangeAttribute |
Double precision range attribute. More... | |
class | MbDencity |
Density. More... | |
class | MbElasticity |
The stiffness. More... | |
class | MbStrains |
The strains / The tensions. More... | |
class | MbShellThickness |
Thickness. More... | |
class | MbElementaryAttribute |
Elementary attribute - the base class. More... | |
class | MbSheetFlangingAttribute |
Swept flange attribute of a sheet solid. More... | |
class | MbGeomAttribute |
Geometric attribute. More... | |
class | MbBaseHotPointAttribute |
Base class of hot-point attributes. More... | |
class | MbHotPointAttribute |
Attribute of a simple hot-point. More... | |
class | MbCompositeHotPointAttribute |
Attribute of a composite hot-point( hot point set ). More... | |
class | MbIdentifier |
Object identifier. More... | |
class | MbNameAttribute |
Topological name. More... | |
class | MbUpdateStamp |
Stamp of update time. More... | |
class | MbAnchorAttribute |
Attribute "anchor". More... | |
class | MbEmbodimentAttribute |
Indication of embodiment (variant of model implementation). More... | |
class | AttrDefInstance |
Attribute definition instance. More... | |
class | MbSelected |
Selection. More... | |
class | MbVisible |
Visibility. More... | |
class | MbChanged |
Modification. More... | |
class | MbStampRibAttribute |
Attribute of reinforsed rib of sheet solid. More... | |
class | IAttrDefinition |
Attribute definition interface. More... | |
class | UserAttrDefinition< AttrClass > |
A template of user attribute definition. More... | |
class | MbUserAttribute |
User system attribute. More... | |
class | MbExternalAttribute |
User external attribute - the base class. More... | |
class | MbFixAttrSet |
Fixed set of attributes. More... | |
class | UserAttrDefinitionInstance< AttrDefClass > |
A template of "Definition" phenomenon of user attribute. More... | |
class | MbUuidInstanceAttribute |
Uuid attribute for instances (MbInstance). More... | |
class | MbAttributeContainer |
An attribute container. More... | |
class | MbAttribute |
Object attributes. More... | |
class | MbAttributeAction |
Object for properties. More... | |
class | MbNamedAttributeContainer |
Attribute container. More... | |
struct | MbUuid |
Global unique identifier. More... | |
struct | string_generator |
Generator of MbUuid from string. More... | |
Typedefs | |
typedef MbUuid | MbUserAttribType |
Identifier of external attribute. More... | |
Functions | |
SPtr< MbVisual > | ColorToVisual (const MbColor &cAttr) |
Convert MbColor attribute into MbVisual attribute. More... | |
SPtr< MbVisual > | ColorToVisual (const MbColor &cAttr, const MbVisual &vAttr) |
Convert color attributes into MbVisual attribute. More... | |
SPtr< MbVisual > | ColorToVisual (const SPtr< MbColor > &cAttr, const SPtr< MbVisual > &vAttr) |
Convert color attributes into MbVisual attribute. More... | |
uint32 | RGB2uint32 (double r, double g, double b) |
Convert a color by 3 components in uint32. More... | |
uint32 | RGB2uint32 (float r, float g, float b, float a) |
Convert a color by 3 components in uint32. More... | |
template<typename float_t > | |
void | uint322RGB (uint32 color, float_t &r, float_t &g, float_t &b) |
Convert unit32 to 3 components of color. More... | |
uint32 | HSV2uint32 (double h, double s, double v) |
Convert a color from HSV model in uint32. More... | |
IAttrDefinition * | GetUserAttrDefinition (const MbUserAttribType &id) |
Find an external attribute definition. | |
bool | GetCommonAttributes (const MbAttributeContainer &attrItem, const c3d::string_t &attrPrompt, c3d::ConstAttrVector &resAttrs) |
Get common attributes. More... | |
bool | AddCommonAttributes (const MbAttributeContainer &srcItem, MbeAttributeType attrType, const c3d::string_t &attrPrompt, MbAttributeContainer &dstItem, c3d::AttrVector *bufAttrs=nullptr) |
Set common attributes in the destination object from the source object. More... | |
bool | RemoveCommonAttributes (MbAttributeContainer &attrItem, const c3d::string_t &attrPrompt) |
Delete common attributes. More... | |
bool | ConvertColorAttributes (MbAttributeContainer &attrItem) |
Convert color attributes. More... | |
typedef MbUuid MbUserAttribType |
Identifier of external attribute.
Identifier of external attribute.
enum MbeAttributeType |
Types of attributes.
Types of geometric model objects attributes. Objects attributes are grouped by families.
enum MbeImplicationType |
Types of attribute containers.
Types of attribute containers which are inheritors of attribute container. Each separate attribute may have its attribute container.
|
inline |
Convert a color by 3 components in uint32.
|
inline |
Convert a color by 3 components in uint32.
void uint322RGB | ( | uint32 | color, |
float_t & | r, | ||
float_t & | g, | ||
float_t & | b | ||
) |
Convert unit32 to 3 components of color.
|
inline |
Convert a color from HSV model in uint32.
Convert a color from HSV model in uint32.
bool GetCommonAttributes | ( | const MbAttributeContainer & | attrItem, |
const c3d::string_t & | attrPrompt, | ||
c3d::ConstAttrVector & | resAttrs | ||
) |
Get common attributes.
Get common attributes.
[in] | attrItem | - Object with attributes. |
[in] | attrPrompt | - Attribute prompt. |
[out] | resAttrs | - Found attributes. |
bool AddCommonAttributes | ( | const MbAttributeContainer & | srcItem, |
MbeAttributeType | attrType, | ||
const c3d::string_t & | attrPrompt, | ||
MbAttributeContainer & | dstItem, | ||
c3d::AttrVector * | bufAttrs = nullptr |
||
) |
Set common attributes in the destination object from the source object.
Set common attributes in the destination object from the source object.
[in] | srcItem | - The source object. |
[in] | attrType | - Attribute type. |
[in] | attrPrompt | - Attribute prompt. |
[out] | dstItem | - The destination object. |
[in,out] | bufAttrs | - Buffer attributes vector. |
bool RemoveCommonAttributes | ( | MbAttributeContainer & | attrItem, |
const c3d::string_t & | attrPrompt | ||
) |
Delete common attributes.
Delete common attributes.
[in] | attrItem | - Object with attributes. |
[in] | attrPrompt | - Attribute prompt. |
bool ConvertColorAttributes | ( | MbAttributeContainer & | attrItem | ) |
Convert color attributes.
Convert color attributes and exclude the attribute MbColor from the container. If there is only the MbColor attribute in the container, it is replaced by the MbVisual attribute, in which the diffuse component contains the value of the MbColor attribute, and the rest - default values. If there is a pair of MbColor and MbVisual attributes, the diffuse component of the MbVisual attribute is replaced with the value of the MbColor attribute, and the MbColor attribute is deleted.
[in/out] | attrItem - Object with attributes. |