Rhino C++ API
8.10
|
#include <opennurbs_3dm_settings.h>
Public Attributes | |
int | m_angleformat = 0 |
0: decimal degrees, ... ( ON_DimStyle::angle_format enum as int ) More... | |
int | m_angularunits = 0 |
0: degrees, 1: radians More... | |
double | m_arrowlength = 1.0 |
int | m_arrowtype = 0 |
0: filled narrow triangular arrow (= ((ON_Arrowhead::arrow_type enum value as int ) - 2)) More... | |
double | m_arrowwidth = 1.0 |
double | m_centermark = 1.0 |
double | m_dimexe = 1.0 |
double | m_dimexo = 1.0 |
double | m_dimscale = 1.0 |
model size / plotted size More... | |
ON::LengthUnitSystem | m_dimunits = ON::LengthUnitSystem::None |
units used to measure the dimension More... | |
ON_wString | m_facename |
for decimal, digits past the decimal point More... | |
int | m_lengthformat = 0 |
2 = ON_DimStyle::LengthDisplay::FeetAndInches, treat everything else as ON_DimStyle::LengthDisplay::ModelUnits More... | |
int | m_resolution = 0 |
double | m_textheight = 1.0 |
Static Public Attributes | |
static const ON_3dmAnnotationSettings | Default |
Model settings render mesh defaults viewports construction planes
|
default |
ON_3dmAnnotationSettings::~ON_3dmAnnotationSettings | ( | ) |
ON_3dmAnnotationSettings::ON_3dmAnnotationSettings | ( | const ON_3dmAnnotationSettings & | ) |
ON_UUID ON_3dmAnnotationSettings::DimensionLayerId | ( | ) | const |
Description: Gets the id of the dimension layer. Note, if id is ON_nil_uuid or if a layer with the id does not exist, the current layer will be used.
void ON_3dmAnnotationSettings::Dump | ( | ON_TextLog & | text_log | ) | const |
void ON_3dmAnnotationSettings::Enable_V5_AnnotationScaling | ( | bool | bEnable | ) |
Parameters: bEnable - [in] Sets value of m_b_V5_EnableAnnotationScaling.
void ON_3dmAnnotationSettings::EnableHatchScaling | ( | bool | bEnable | ) |
Parameters: bEnable - [in] Sets value of m_bEnableHatchScaling.
void ON_3dmAnnotationSettings::EnableLayoutSpaceAnnotationScaling | ( | bool | bEnable | ) |
Parameters: bEnable - [in] Sets value of m_bEnableLayoutSpaceAnnotationScaling.
void ON_3dmAnnotationSettings::EnableModelSpaceAnnotationScaling | ( | bool | bEnable | ) |
Parameters: bEnable - [in] Sets value of m_bEnableModelSpaceAnnotationScaling.
void ON_3dmAnnotationSettings::EnableUseDimensionLayer | ( | bool | bEnable | ) |
Description: Enables or disables the use of a dimension layer.
bool ON_3dmAnnotationSettings::Is_V5_AnnotationScalingEnabled | ( | ) | const |
Returns: Value of m_b_V5_EnableAnnotationScaling;
bool ON_3dmAnnotationSettings::IsHatchScalingEnabled | ( | ) | const |
Returns: Value of m_bEnableHatchScaling;
bool ON_3dmAnnotationSettings::IsLayoutSpaceAnnotationScalingEnabled | ( | ) | const |
Returns: Value of m_bEnableLayoutSpaceAnnotationScaling;
bool ON_3dmAnnotationSettings::IsModelSpaceAnnotationScalingEnabled | ( | ) | const |
Returns: Value of m_bEnableModelSpaceAnnotationScaling;
ON_3dmAnnotationSettings& ON_3dmAnnotationSettings::operator= | ( | const ON_3dmAnnotationSettings & | ) |
bool ON_3dmAnnotationSettings::Read | ( | ON_BinaryArchive & | ) |
void ON_3dmAnnotationSettings::SetDimensionLayerId | ( | const ON_UUID & | dimension_layer_id | ) |
Description: Sets the dimension layer id. To, clear, use ON_nil_uuid.
void ON_3dmAnnotationSettings::SetWorldViewHatchScale | ( | double | world_view_hatch_scale | ) |
Description: Sets the world view hatch scale.
void ON_3dmAnnotationSettings::SetWorldViewTextScale | ( | double | world_view_text_scale | ) |
Description: Sets the world view text scale.
bool ON_3dmAnnotationSettings::UseDimensionLayer | ( | ) | const |
Returns: If true, then new annotations are added to the layer with the id returned by DimensionLayerId(). If false, then new annotations are added to the document's current layer.
double ON_3dmAnnotationSettings::WorldViewHatchScale | ( | ) | const |
Returns: Gets the world view hatch scale.
double ON_3dmAnnotationSettings::WorldViewTextScale | ( | ) | const |
Returns: Gets the world view text scale.
bool ON_3dmAnnotationSettings::Write | ( | ON_BinaryArchive & | ) | const |
|
static |
int ON_3dmAnnotationSettings::m_angleformat = 0 |
0: decimal degrees, ... ( ON_DimStyle::angle_format enum as int )
int ON_3dmAnnotationSettings::m_angularunits = 0 |
0: degrees, 1: radians
double ON_3dmAnnotationSettings::m_arrowlength = 1.0 |
int ON_3dmAnnotationSettings::m_arrowtype = 0 |
0: filled narrow triangular arrow (= ((ON_Arrowhead::arrow_type enum value as int ) - 2))
double ON_3dmAnnotationSettings::m_arrowwidth = 1.0 |
double ON_3dmAnnotationSettings::m_centermark = 1.0 |
double ON_3dmAnnotationSettings::m_dimexe = 1.0 |
double ON_3dmAnnotationSettings::m_dimexo = 1.0 |
double ON_3dmAnnotationSettings::m_dimscale = 1.0 |
model size / plotted size
these are the running defaults for making dimensions they are also the things written to the 3dm file as dimension settings
ON::LengthUnitSystem ON_3dmAnnotationSettings::m_dimunits = ON::LengthUnitSystem::None |
units used to measure the dimension
ON_wString ON_3dmAnnotationSettings::m_facename |
for decimal, digits past the decimal point
[LF_FACESIZE] ///< windows font name
int ON_3dmAnnotationSettings::m_lengthformat = 0 |
2 = ON_DimStyle::LengthDisplay::FeetAndInches, treat everything else as ON_DimStyle::LengthDisplay::ModelUnits
int ON_3dmAnnotationSettings::m_resolution = 0 |
ON_INTERNAL_OBSOLETE::V5_TextDisplayMode m_settings_textalign; ///< In V2 files - 0: above line, 1: in line, 2: horizontal ///< After V2 files - 0: normal (converts to above_line), 1: horizontal, 2: above_line, 3: in_line
depends on m_lengthformat
double ON_3dmAnnotationSettings::m_textheight = 1.0 |