This class provides several informations about a CatiaV5 File.
It can be used with catiav5w::InitPart and catiav5w::InitProduct functions to specify file properties.
More...
Public Types | |
enum | ProductSourceType { Unknown = 0, Made, Bought } |
Public Member Functions | |
void | AddBooleanProperty (const Dtk_string &inPropertyName, const Dtk_bool &inValue) |
Adds an additional integer property. More... | |
void | AddDoubleProperty (const Dtk_string &inPropertyName, const double &inValue) |
Adds an additional double property. More... | |
void | AddIntegerProperty (const Dtk_string &inPropertyName, const Dtk_Int32 &inValue) |
Adds an additional integer property. More... | |
void | AddStringProperty (const Dtk_string &inPropertyName, const Dtk_string &inValue) |
Adds an additional integer property. More... | |
FileDescription () | |
Default constructor. More... | |
const Dtk_string & | GetDefinition () const |
Retrieves the file definition - read only -. More... | |
const Dtk_string & | GetDescription () const |
Retrieves the file description - read only -. More... | |
const Dtk_PropertiesPtr & | GetIthAdditionalProperties (const Dtk_Size_t &inPos) const |
Retrieves the file source type - read only -. More... | |
const Dtk_string & | GetNomenclature () const |
Retrieves the file nomenclature - read only -. More... | |
Dtk_Size_t | GetNumAdditionalProperties () const |
Retrieves the file source type - read only -. More... | |
const catiav5w::Material & | GetPartMaterial () const |
Retrieves the file root material - read only -. More... | |
const Dtk_string & | GetRevision () const |
Retrieves the file revision - read only -. More... | |
const ProductSourceType & | GetSourceType () const |
Retrieves the file source type - read only -. More... | |
SetAsDeprecated ("2023.4", "Use GetPartMaterial method instead.") inline Dtk_Double64 GetPartDensity() const | |
Retrieves the Part Density - read only -. More... | |
SetAsDeprecated ("2023.4", "Use SetPartMaterial with Analysis::Density instead.") inline void SetPartDensity(const Dtk_Double64 inPartDensity) | |
Sets the Part Density. More... | |
void | SetDefinition (const Dtk_string &inDefinition) |
Sets the file definition. More... | |
void | SetDescription (const Dtk_string &inDescription) |
Sets the file description. More... | |
void | SetNomenclature (const Dtk_string &inNomenclature) |
Sets the file nomenclature. More... | |
void | SetPartMaterial (const catiav5w::Material &inMaterial) |
Sets the file root material. More... | |
void | SetRevision (const Dtk_string &inRevision) |
Sets the file revision. More... | |
void | SetSourceType (const ProductSourceType &inSourceType) |
Sets the file source type. More... | |
~FileDescription () | |
Destructor. More... | |
Protected Attributes | |
Dtk_tab< Dtk_PropertiesPtr > | _AdditionalProperties |
Dtk_string | _Definition |
Definition of the CatiaV5 File. More... | |
Dtk_string | _Description |
Description of the CatiaV5 File. More... | |
Dtk_string | _Nomenclature |
Nomenclature of the CatiaV5 File. More... | |
Dtk_Double64 | _PartDensity |
Dtk_string | _Revision |
Revision of the CatiaV5 File. More... | |
ProductSourceType | _SourceType |
Source Type of the CatiaV5 File. More... | |
Material | m_PartMaterial |
This class provides several informations about a CatiaV5 File.
It can be used with catiav5w::InitPart and catiav5w::InitProduct functions to specify file properties.
catiav5w::FileDescription::FileDescription | ( | ) |
Default constructor.
catiav5w::FileDescription::~FileDescription | ( | ) |
Destructor.
void catiav5w::FileDescription::AddBooleanProperty | ( | const Dtk_string & | inPropertyName, |
const Dtk_bool & | inValue | ||
) |
Adds an additional integer property.
void catiav5w::FileDescription::AddDoubleProperty | ( | const Dtk_string & | inPropertyName, |
const double & | inValue | ||
) |
Adds an additional double property.
void catiav5w::FileDescription::AddIntegerProperty | ( | const Dtk_string & | inPropertyName, |
const Dtk_Int32 & | inValue | ||
) |
Adds an additional integer property.
void catiav5w::FileDescription::AddStringProperty | ( | const Dtk_string & | inPropertyName, |
const Dtk_string & | inValue | ||
) |
Adds an additional integer property.
const Dtk_string& catiav5w::FileDescription::GetDefinition | ( | ) | const |
const Dtk_string& catiav5w::FileDescription::GetDescription | ( | ) | const |
const Dtk_PropertiesPtr& catiav5w::FileDescription::GetIthAdditionalProperties | ( | const Dtk_Size_t & | inPos | ) | const |
const Dtk_string& catiav5w::FileDescription::GetNomenclature | ( | ) | const |
Retrieves the file nomenclature - read only -.
Dtk_Size_t catiav5w::FileDescription::GetNumAdditionalProperties | ( | ) | const |
const catiav5w::Material& catiav5w::FileDescription::GetPartMaterial | ( | ) | const |
Retrieves the file root material - read only -.
const Dtk_string& catiav5w::FileDescription::GetRevision | ( | ) | const |
const ProductSourceType& catiav5w::FileDescription::GetSourceType | ( | ) | const |
catiav5w::FileDescription::SetAsDeprecated | ( | "2023.4" | , |
"Use GetPartMaterial method instead." | |||
) | const |
Retrieves the Part Density - read only -.
catiav5w::FileDescription::SetAsDeprecated | ( | "2023.4" | , |
"Use SetPartMaterial with Analysis::Density instead." | |||
) | const |
Sets the Part Density.
void catiav5w::FileDescription::SetDefinition | ( | const Dtk_string & | inDefinition | ) |
Sets the file definition.
void catiav5w::FileDescription::SetDescription | ( | const Dtk_string & | inDescription | ) |
Sets the file description.
void catiav5w::FileDescription::SetNomenclature | ( | const Dtk_string & | inNomenclature | ) |
Sets the file nomenclature.
void catiav5w::FileDescription::SetPartMaterial | ( | const catiav5w::Material & | inMaterial | ) |
Sets the file root material.
void catiav5w::FileDescription::SetRevision | ( | const Dtk_string & | inRevision | ) |
Sets the file revision.
void catiav5w::FileDescription::SetSourceType | ( | const ProductSourceType & | inSourceType | ) |
Sets the file source type.
|
protected |
|
protected |
Definition of the CatiaV5 File.
|
protected |
Description of the CatiaV5 File.
|
protected |
Nomenclature of the CatiaV5 File.
|
protected |
|
protected |
Revision of the CatiaV5 File.
|
protected |
Source Type of the CatiaV5 File.
|
protected |