NX Open C++ Reference Guide
|
Base class for all objects that are displayable. More...
Public Types | |
enum | ObjectFont { ObjectFontSolid = 1, ObjectFontDashed, ObjectFontPhantom, ObjectFontCenterline, ObjectFontDotted, ObjectFontLongDashed, ObjectFontDottedDashed } |
specifies the object font for objects such as lines Created in NX3.0.0. More... | |
enum | ObjectWidth { ObjectWidthNormal, ObjectWidthThick, ObjectWidthThin } |
specifies object width for objects such as lines and text Created in NX3.0.0. More... | |
Public Member Functions | |
void | Blank () |
Blanks the object. | |
int | Color () |
Returns the color of the object. | |
void | Highlight () |
Highlights the object. | |
bool | IsBlanked () |
Returns the blank status of this object. | |
int | Layer () |
Returns the layer that the object is in. | |
NXOpen::DisplayableObject::ObjectFont | LineFont () |
Returns the line font of the object. | |
NXOpen::DisplayableObject::ObjectWidth | LineWidth () |
Returns the line width of the object. | |
NXOpen::Point3d | NameLocation () |
Returns the location of the object's name. | |
void | RedisplayObject () |
Redisplays the object in all views. | |
void | SetColor (int color) |
Sets the color of the object. | |
void | SetLayer (int layer) |
Sets the layer that the object is in. | |
void | SetLineFont (NXOpen::DisplayableObject::ObjectFont font) |
Sets the line font of the object. | |
void | SetLineWidth (NXOpen::DisplayableObject::ObjectWidth width) |
Sets the line width of the object. | |
void | SetNameLocation (const NXOpen::Point3d &location) |
Sets the location of the object's name. | |
void | Unblank () |
Unblanks the object. | |
void | Unhighlight () |
Unhighlights the object. |
Base class for all objects that are displayable.
This is an abstract class, and cannot be instantiated.
Created in NX3.0.0.
void NXOpen::DisplayableObject::Blank | ( | ) |
Blanks the object.
Created in NX3.0.0.
License requirements : None
int NXOpen::DisplayableObject::Color | ( | ) |
Returns the color of the object.
After setting the color, you must call RedisplayObject in order for the change to take effect. There is a more efficient way to change the color, layer, line font or line width of a object. First call DisplayManager::NewDisplayModification and then call any combination of set methods for the properties DisplayModification::NewColor and DisplayModification::SetNewColor , DisplayModification::NewWidth and DisplayModification::SetNewWidth , DisplayModification::NewFont and DisplayModification::SetNewFont and DisplayModification::NewLayer and DisplayModification::SetNewLayer . Finally call DisplayModification::Apply and TransientObject::Dispose . This eliminates the need to call RedisplayObject .
Created in NX3.0.0.
License requirements : None
void NXOpen::DisplayableObject::Highlight | ( | ) |
Highlights the object.
Created in NX3.0.0.
License requirements : None
bool NXOpen::DisplayableObject::IsBlanked | ( | ) |
Returns the blank status of this object.
Created in NX3.0.0.
License requirements : None
int NXOpen::DisplayableObject::Layer | ( | ) |
Returns the layer that the object is in.
After setting the layer, you must call RedisplayObject in order for the change to take effect, except see the comments for DisplayableObject::Color and DisplayableObject::SetColor .
Created in NX3.0.0.
License requirements : None
Returns the line font of the object.
After setting the line font, you must call RedisplayObject in order for the change to take effect, except see the comments for DisplayableObject::Color and DisplayableObject::SetColor .
Created in NX3.0.0.
License requirements : None
Returns the line width of the object.
After setting the line width, you must call RedisplayObject in order for the change to take effect, except see the comments for DisplayableObject::Color and DisplayableObject::SetColor .
Created in NX3.0.0.
License requirements : None
Returns the location of the object's name.
Created in NX3.0.0.
License requirements : None
Redisplays the object in all views.
Typically this is used to display an object after its creation.
Created in NX4.0.0.
License requirements : None
void NXOpen::DisplayableObject::SetColor | ( | int | color | ) |
Sets the color of the object.
After setting the color, you must call RedisplayObject in order for the change to take effect. There is a more efficient way to change the color, layer, line font or line width of a object. First call DisplayManager::NewDisplayModification and then call any combination of set methods for the properties DisplayModification::NewColor and DisplayModification::SetNewColor , DisplayModification::NewWidth and DisplayModification::SetNewWidth , DisplayModification::NewFont and DisplayModification::SetNewFont and DisplayModification::NewLayer and DisplayModification::SetNewLayer . Finally call DisplayModification::Apply and TransientObject::Dispose . This eliminates the need to call RedisplayObject .
Created in NX4.0.0.
License requirements : None
color | color |
void NXOpen::DisplayableObject::SetLayer | ( | int | layer | ) |
Sets the layer that the object is in.
After setting the layer, you must call RedisplayObject in order for the change to take effect, except see the comments for DisplayableObject::Color and DisplayableObject::SetColor .
Created in NX4.0.0.
License requirements : None
layer | layer |
Sets the line font of the object.
After setting the line font, you must call RedisplayObject in order for the change to take effect, except see the comments for DisplayableObject::Color and DisplayableObject::SetColor .
Created in NX4.0.0.
License requirements : None
font | font |
Sets the line width of the object.
After setting the line width, you must call RedisplayObject in order for the change to take effect, except see the comments for DisplayableObject::Color and DisplayableObject::SetColor .
Created in NX4.0.0.
License requirements : None
width | width |
void NXOpen::DisplayableObject::SetNameLocation | ( | const NXOpen::Point3d & | location | ) |
Sets the location of the object's name.
Created in NX3.0.0.
License requirements : None
location | location |
void NXOpen::DisplayableObject::Unblank | ( | ) |
Unblanks the object.
Created in NX3.0.0.
License requirements : None
Unhighlights the object.
Created in NX3.0.0.
License requirements : None