C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
+ Collaboration diagram for Attributes:

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...
 

Enumerations

enum  MbeAttributeType {
  at_Undefined = 0 , at_ElementaryAttribute = 101 , at_Identifier = 102 , at_Color = 103 ,
  at_Width = 104 , at_Style = 105 , at_Visual = 106 , at_Selected = 107 ,
  at_Visible = 108 , at_WireCount = 109 , at_Changed = 110 , at_Dencity = 111 ,
  at_NameAttribute = 112 , at_UpdateStamp = 113 , at_Embodiment = 114 , at_Elasticity = 115 ,
  at_Strains = 116 , at_ShellThickness = 117 , at_ElementaryLast = 200 , at_CommonAttribute = 201 ,
  at_BoolAttribute = 202 , at_IntAttribute = 203 , at_DoubleAttribute = 204 , at_StringAttribute = 205 ,
  at_GeomAttribute = 206 , at_StampRibAttribute = 207 , at_Int64Attribute = 208 , at_BinaryAttribute = 209 ,
  at_SweptFlangeAttribute = 210 , at_Int32VectorAttribute = 211 , at_Int64VectorAttribute = 212 , at_DoubleVectorAttribute = 213 ,
  at_UuidInstanceAttribute = 214 , at_BaseHotPointAttribute = 215 , at_HotPointAttribute = 216 , at_CompHotPointAttribute = 217 ,
  at_DoubleRangeAttribute = 218 , at_CommonLast = 300 , at_LinkingAttribute = 301 , at_AnchorAttribute = 302 ,
  at_DirectiveAttribute = 401 , at_KeepUniqueKey = 402 , at_ProductAttribute = 501 , at_ModelInfo = 502 ,
  at_PersonOrganizationInfo = 503 , at_ProductInfo = 504 , at_STEPTextDescription = 505 , at_STEPReferenceHolder = 506 ,
  at_UserAttribute = 601 , at_UserFirst = 602 , at_UserLast = 900 , at_ExternalAttribute = 901 ,
  at_ExternalAttributeImp = 902 , at_FreeItem = 1000
}
 Types of attributes. More...
 
enum  MbeImplicationType {
  ace_Attribute , ace_ModelItem , ace_TopItem , ace_MeshItem ,
  ace_Model , ace_AttribContainer
}
 Types of attribute containers. More...
 

Functions

SPtr< MbVisualColorToVisual (const MbColor &cAttr)
 Convert MbColor attribute into MbVisual attribute. More...
 
SPtr< MbVisualColorToVisual (const MbColor &cAttr, const MbVisual &vAttr)
 Convert color attributes into MbVisual attribute. More...
 
SPtr< MbVisualColorToVisual (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...
 
IAttrDefinitionGetUserAttrDefinition (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...
 

Detailed Description

Typedef Documentation

◆ MbUserAttribType

Identifier of external attribute.

Identifier of external attribute.

Enumeration Type Documentation

◆ MbeAttributeType

Types of attributes.

Types of geometric model objects attributes. Objects attributes are grouped by families.

Enumerator
at_Undefined 

Undefined - used as "any" in search.
.

at_ElementaryAttribute 

Elementary attribute.

at_Identifier 

Identifier.

at_Color 

Color.

at_Width 

Lines width.

at_Style 

Lines style.

at_Visual 

Material properties (properties for OpenGL).

at_Selected 

Selection.

at_Visible 

Visibility.

at_WireCount 

The number of u-mesh and v-mesh drawing lines.

at_Changed 

Modification.

at_Dencity 

Density.

at_NameAttribute 

Topological name.

at_UpdateStamp 

Stamp of update time.

at_Embodiment 

Indication of embodiment (variant of model implementation).

at_Elasticity 

Mechanical properties: Young's modulus and Poisson's ratio.

at_Strains 

The strains.

at_ShellThickness 

The shell thickness.

at_ElementaryLast 

Elementary attributes should be inserted before this value.
.

at_CommonAttribute 

Common attribute.

at_BoolAttribute 

Boolean attribute.

at_IntAttribute 

Integer attribute.

at_DoubleAttribute 

Double attribute.

at_StringAttribute 

String attribute.

at_GeomAttribute 

Geometric attribute.
.

at_StampRibAttribute 

Attribute of reinforcement rib of sheet solid.
.

at_Int64Attribute 

Int64 attribute.

at_BinaryAttribute 

Binary attribute.

at_SweptFlangeAttribute 

Swept flange attribute of a sheet solid.
.

at_Int32VectorAttribute 

Array of integer (int32) values attribute.

at_Int64VectorAttribute 

Array of integer (int64) values attribute.

at_DoubleVectorAttribute 

Array of real (double) values attribute.

at_UuidInstanceAttribute 

Uuid attribute for instances.

at_BaseHotPointAttribute 

Base attribute of hot-point.
.

at_HotPointAttribute 

Attribute of the simple hot-point.
.

at_CompHotPointAttribute 

Composite attribute of the hot-point.
.

at_DoubleRangeAttribute 

Double precision range attribute.

at_CommonLast 

Common attributes should be inserted before this value.
.

at_LinkingAttribute 

Linking attribute.

at_AnchorAttribute 

Anchor.
.

at_DirectiveAttribute 

Directive attribute.

at_KeepUniqueKey 

Support unique keys.
.

at_ProductAttribute 

Converters attribute.

at_ModelInfo 

Information about model itself.

at_PersonOrganizationInfo 

Person and organization information.

at_ProductInfo 

Product info.

at_STEPTextDescription 

STEP description.

at_STEPReferenceHolder 

Back reference.
.

at_UserAttribute 

User attribute.

at_UserFirst 

First user attribute.

at_UserLast 

Last user attribute.
.

at_ExternalAttribute 

External attribute.

at_ExternalAttributeImp 

Subtype - external attribute.

at_FreeItem 

Type for the other objects.

◆ MbeImplicationType

Types of attribute containers.

Types of attribute containers which are inheritors of attribute container. Each separate attribute may have its attribute container.

Enumerator
ace_Attribute 

Attribute container which contains other attributes.

ace_ModelItem 

Container of geometric model objects attributes.

ace_TopItem 

Container of named topological objects attributes.

ace_MeshItem 

Container of mesh primitives attributes.

ace_Model 

Container of geometric model attributes.

ace_AttribContainer 

Attribute container.

Function Documentation

◆ ColorToVisual() [1/3]

SPtr<MbVisual> ColorToVisual ( const MbColor cAttr)

Convert MbColor attribute into MbVisual attribute.

Create a MbVisual attribute where the diffuse component contains the value of MbColor attribute and the rest contain default values.

Parameters
[in]cAttr- MbColor attribute.
Returns
Returns a pointer to the created MbVisual attribute.

◆ ColorToVisual() [2/3]

SPtr<MbVisual> ColorToVisual ( const MbColor cAttr,
const MbVisual vAttr 
)

Convert color attributes into MbVisual attribute.

Create a MbVisual attribute on base of the MbVisual attribute where the diffuse component contains the value of the MbColor attribute.

Parameters
[in]cAttr- MbColor attribute.
[in]vAttr- MbVisual attribute.
Returns
Returns a pointer to the created MbVisual attribute.

◆ ColorToVisual() [3/3]

SPtr<MbVisual> ColorToVisual ( const SPtr< MbColor > &  cAttr,
const SPtr< MbVisual > &  vAttr 
)

Convert color attributes into MbVisual attribute.

Create a MbVisual attribute on base of the MbVisual attribute where the diffuse component contains the value of the MbColor attribute.

Parameters
[in]cAttr- MbColor attribute pointer.
[in]vAttr- MbVisual attribute pointer.
Returns
Returns a pointer to the created MbVisual attribute.

◆ RGB2uint32() [1/2]

uint32 RGB2uint32 ( double  r,
double  g,
double  b 
)
inline

Convert a color by 3 components in uint32.

Warning
Values of color components should belong to the range [ 0; 1 ].

◆ RGB2uint32() [2/2]

uint32 RGB2uint32 ( float  r,
float  g,
float  b,
float  a 
)
inline

Convert a color by 3 components in uint32.

Warning
Values of color components should belong to the range [ 0; 1 ].

◆ uint322RGB()

template<typename float_t >
void uint322RGB ( uint32  color,
float_t &  r,
float_t &  g,
float_t &  b 
)

Convert unit32 to 3 components of color.

Warning
Color components belong to the range [ 0; 1 ].

◆ HSV2uint32()

uint32 HSV2uint32 ( double  h,
double  s,
double  v 
)
inline

Convert a color from HSV model in uint32.

Convert a color from HSV model in uint32.

◆ GetCommonAttributes()

bool GetCommonAttributes ( const MbAttributeContainer attrItem,
const c3d::string_t attrPrompt,
c3d::ConstAttrVector &  resAttrs 
)

Get common attributes.

Get common attributes.

Parameters
[in]attrItem- Object with attributes.
[in]attrPrompt- Attribute prompt.
[out]resAttrs- Found attributes.
Returns
Returns 'true' if the something was got.

◆ AddCommonAttributes()

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.

Parameters
[in]srcItem- The source object.
[in]attrType- Attribute type.
[in]attrPrompt- Attribute prompt.
[out]dstItem- The destination object.
[in,out]bufAttrs- Buffer attributes vector.
Returns
Returns 'true' if the something was added.

◆ RemoveCommonAttributes()

bool RemoveCommonAttributes ( MbAttributeContainer attrItem,
const c3d::string_t attrPrompt 
)

Delete common attributes.

Delete common attributes.

Parameters
[in]attrItem- Object with attributes.
[in]attrPrompt- Attribute prompt.
Returns
Returns 'true' if the something was deleted.

◆ ConvertColorAttributes()

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.

Parameters
[in/out]attrItem - Object with attributes.
Returns
Returns 'true' if the attributes were was changed.