DimensionEntity
-
class
PMI::DimensionEntity This class represents basic, reference or tolerance dimension.
Inherits from:
PMI::Entity
Methods
-
PMI::DimensionEntity::DimensionEntity(HC_KEY segment_key = INVALID_KEY) Constructs a
DimensionEntityobject. It requires specifying the segment key where theDimensionEntitywill insert associated geometry.
-
PMI::DimensionEntity::DimensionEntity(DimensionEntity const &that)
-
virtual
PMI::DimensionEntity::~DimensionEntity() virtual
-
void
PMI::DimensionEntity::Set(DimensionEntity const &that)
-
DimensionEntity const &
PMI::DimensionEntity::operator=(DimensionEntity const &that)
-
virtual Type
PMI::DimensionEntity::GetType() const const virtual
Returns
the PMI::Type for this entity. Overridden by subclasses.
-
Dimension::Type
PMI::DimensionEntity::GetDimensionType() const const
Returns
the dimension type of thisDimensionEntity
-
void
PMI::DimensionEntity::SetDimensionType(Dimension::Type const in_type) Sets the dimension type of this
DimensionEntity. This will replace an existing dimension type.
-
Dimension::SubType
PMI::DimensionEntity::GetDimensionSubType() const const
Returns
the dimension subtype of thisDimensionEntity
-
void
PMI::DimensionEntity::SetDimensionSubType(Dimension::SubType const in_sub_type) Sets the dimension subtype of this
DimensionEntity. This will replace an existing dimension subtype.
-
unsigned int
PMI::DimensionEntity::GetStringCount() const const
Returns
the number of strings for thisDimensionEntity
-
void
PMI::DimensionEntity::GetStrings(unsigned int &out_count, String out_strings[], TextAttributes out_text_attributes[]) const const
Gets the strings for this
DimensionEntity.Parameters
out_count: the number of strings for this
DimensionEntity. Returned to the user.out_strings: the array of strings for this
DimensionEntity. Returned to the user. Necessary space should be allocated prior to calling. If pointer is NULL no values will be put into the array.out_text_attributes: the array of
TextAttributesfor the strings for thisDimensionEntity. Returned to the user. Necessary space should be allocated prior to calling. If pointer is NULL no values will be put into the array.
-
void
PMI::DimensionEntity::SetStrings(unsigned int in_count, String const in_strings[], TextAttributes const in_text_attributes[]) Sets the strings for this
DimensionEntity. These will replace any existing strings.Parameters
in_count: the number of strings in the array
in_strings: the array of strings for this
DimensionEntityin_text_attributes: the array of
TextAttributesfor the strings for thisDimensionEntity