NX Open C++ Reference Guide
|
Represents a Features::ColorFeatureBuilder Represents a color feature builder. More...
Public Types | |
enum | OperationType { OperationTypeSpecifyColor, OperationTypeNoColor } |
specify color or remove color type More... | |
Public Member Functions | |
NXOpen::NXColor * | Color () |
Returns the color Created in NX8.5.0. | |
NXOpen::Features::SelectFeatureList * | SelectFeature () |
Returns the features to color Created in NX8.5.0. | |
void | SetColor (NXOpen::NXColor *color) |
Sets the color Created in NX8.5.0. | |
void | SetSpecifyColor (NXOpen::Features::ColorFeatureBuilder::OperationType specifyColor) |
Sets the specified color option. | |
void | SetStoreColor (bool hasStoreColor) |
Sets the save color property to feature Created in NX8.5.0. | |
NXOpen::Features::ColorFeatureBuilder::OperationType | SpecifyColor () |
Returns the specified color option. | |
bool | StoreColor () |
Returns the save color property to feature Created in NX8.5.0. | |
![]() | |
NXOpen::NXObject * | Commit () |
Commits any edits that have been applied to the builder. | |
void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. | |
std::vector< NXOpen::NXObject * > | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. | |
NXOpen::NXObject * | GetObject () |
Returns the object currently being edited by this builder. | |
void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. | |
![]() | |
tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Represents a Features::ColorFeatureBuilder Represents a color feature builder.
The color feature does not create a feature, but assists user to assign color to selected features.
To create a new instance of this class, use Features::FeatureCollection::CreateColorFeatureBuilder
Default values.
Property | Value |
---|---|
SpecifyColor |
SpecifyColor |
StoreColor |
1 |
Created in NX8.5.0.
NXOpen::NXColor* NXOpen::Features::ColorFeatureBuilder::Color | ( | ) |
Returns the color
Created in NX8.5.0.
License requirements : None
NXOpen::Features::SelectFeatureList* NXOpen::Features::ColorFeatureBuilder::SelectFeature | ( | ) |
Returns the features to color
Created in NX8.5.0.
License requirements : None
void NXOpen::Features::ColorFeatureBuilder::SetColor | ( | NXOpen::NXColor * | color | ) |
Sets the color
Created in NX8.5.0.
License requirements : None
color | color |
void NXOpen::Features::ColorFeatureBuilder::SetSpecifyColor | ( | NXOpen::Features::ColorFeatureBuilder::OperationType | specifyColor | ) |
Sets the specified color option.
If the option is Features::ColorFeatureBuilder::OperationTypeSpecifyColor , assign valid color to feature. If the returned value is Features::ColorFeatureBuilder::OperationTypeNoColor , remove color from feature
Created in NX8.5.0.
License requirements : None
specifyColor | specifycolor |
void NXOpen::Features::ColorFeatureBuilder::SetStoreColor | ( | bool | hasStoreColor | ) |
Sets the save color property to feature
Created in NX8.5.0.
License requirements : None
hasStoreColor | hasstorecolor |
NXOpen::Features::ColorFeatureBuilder::OperationType NXOpen::Features::ColorFeatureBuilder::SpecifyColor | ( | ) |
Returns the specified color option.
If the option is Features::ColorFeatureBuilder::OperationTypeSpecifyColor , assign valid color to feature. If the returned value is Features::ColorFeatureBuilder::OperationTypeNoColor , remove color from feature
Created in NX8.5.0.
License requirements : None
bool NXOpen::Features::ColorFeatureBuilder::StoreColor | ( | ) |
Returns the save color property to feature
Created in NX8.5.0.
License requirements : None