NXOpen C++ Reference Guide
|
A dynamically typed scalar value. More...
A dynamically typed scalar value.
A Variant is a scalar value whose type is determined at runtime based on the previously assigned value. For example, once an integer number is assigned to a variant, that Variant now represents an integer. Variants are needed to read and assign values in a generic way, and it permits arbitrary PostScenarios (NXOpen::CAE::PostScenarioBuilder ) and arbitrary Data Sources to work together to provide a seamless post processing experience. Variant instances need to be disposed of after they are no longer needed.
To create a new instance of this class, use NXOpen::CAE::PostScenarioSelectionParameters::NewVariant
Created in NX11.0.0.
|
virtual |
Dispose of this instance.
Created in NX11.0.0.
License requirements : None
NXOpen::CAE::PostScenarioVariantType NXOpen::CAE::PostScenarioVariant::GetDataType | ( | ) |
Read the type.
Created in NX11.0.0.
License requirements : None
bool NXOpen::CAE::PostScenarioVariant::GetValueAsBoolean | ( | ) |
Read the typed value.
Created in NX11.0.0.
License requirements : None
NXOpen::CAE::Complex NXOpen::CAE::PostScenarioVariant::GetValueAsComplex | ( | ) |
Read the typed value.
Created in NX11.0.0.
License requirements : None
NXOpen::CAE::PostScenarioVariantComponent NXOpen::CAE::PostScenarioVariant::GetValueAsComponent | ( | ) |
Read the typed value.
Created in NX12.0.0.
License requirements : None
NXOpen::CAE::PostScenarioCoordinateSystem* NXOpen::CAE::PostScenarioVariant::GetValueAsCoordinateSystem | ( | ) |
Read the typed value.
Created in NX1847.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
double NXOpen::CAE::PostScenarioVariant::GetValueAsDouble | ( | ) |
Read the typed value.
Created in NX11.0.0.
License requirements : None
int NXOpen::CAE::PostScenarioVariant::GetValueAsInteger | ( | ) |
Read the typed value.
Created in NX11.0.0.
License requirements : None
NXOpen::CAE::PostScenarioModeDescription NXOpen::CAE::PostScenarioVariant::GetValueAsModeDescription | ( | ) |
Read the typed value.
Created in NX12.0.0.
License requirements : None
NXString NXOpen::CAE::PostScenarioVariant::GetValueAsString | ( | ) |
Read the typed value.
Created in NX11.0.0.
License requirements : None
NXString NXOpen::CAE::PostScenarioVariant::GetValueAsUnicodeString | ( | ) |
Read the typed value.
Created in NX11.0.0.
License requirements : None
NXOpen::Vector3d NXOpen::CAE::PostScenarioVariant::GetValueAsVector3d | ( | ) |
Read the typed value.
Created in NX12.0.0.
License requirements : None
NXOpen::CAE::PostScenarioCoordinateSystem* NXOpen::CAE::PostScenarioVariant::NewPostScenarioCoordinateSystem | ( | NXOpen::CAE::PostScenarioCoordinateSystemType | type, |
const NXOpen::Vector3d & | origin, | ||
const NXOpen::Matrix3x3 & | matrix | ||
) |
Create a new Post Scenario Coordinate System ((NXOpen::CAE::PostScenarioCoordinateSystem )).
Created in NX1847.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
type | type |
origin | origin |
matrix | matrix |
void NXOpen::CAE::PostScenarioVariant::SetValueAsBoolean | ( | bool | value | ) |
Set a typed value.
Created in NX11.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsComplex | ( | const NXOpen::CAE::Complex & | value | ) |
Set a typed value.
Created in NX11.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsComponent | ( | NXOpen::CAE::PostScenarioVariantComponent | value | ) |
Set a typed value.
Created in NX12.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsCoordinateSystem | ( | NXOpen::CAE::PostScenarioCoordinateSystem * | value | ) |
Set a typed value.
Created in NX1847.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsDouble | ( | double | value | ) |
Set a typed value.
Created in NX11.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsInteger | ( | int | value | ) |
Set a typed value.
Created in NX11.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsModeDescription | ( | const NXOpen::CAE::PostScenarioModeDescription & | value | ) |
Set a typed value.
Created in NX12.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsString | ( | const NXString & | value | ) |
Set a typed value.
Created in NX11.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsString | ( | const char * | value | ) |
Set a typed value.
Created in NX11.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsUnary | ( | ) |
Set a typed value.
This method is parameterless because the void types does not have values.
Created in NX12.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
void NXOpen::CAE::PostScenarioVariant::SetValueAsUnicodeString | ( | const NXString & | value | ) |
Set a typed value.
Created in NX11.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsUnicodeString | ( | const char * | value | ) |
Set a typed value.
Created in NX11.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsVector3d | ( | const NXOpen::Vector3d & | value | ) |
Set a typed value.
Created in NX12.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
value | value |
void NXOpen::CAE::PostScenarioVariant::SetValueAsWildcard | ( | ) |
Set a typed value.
This method is parameterless because the void types does not have values.
Created in NX1847.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")