NX Open C++ Reference Guide
|
Represents an object to manage display settings. More...
Classes | |
struct | J3dColor |
3d interface color definition More... | |
struct | J3dData |
3d interface structure More... | |
struct | J3dMaterial |
3d interface material definition More... | |
Public Member Functions | |
void | BlankObjects (const std::vector< NXOpen::DisplayableObject * > &objects) |
Blank a set of displayable objects. More... | |
NXOpen::DisplayManager::FacetCacheMemoryLevelType | FacetCacheMemoryLevel () |
Returns the memory level of the display facet cache system. More... | |
std::vector < NXOpen::DisplayManager::J3dData > | GetJ3dData () |
Returns the list of displayable entities along with display information for each entity in the displayed part. More... | |
bool | GetJ3dGeometry (NXOpen::DisplayableObject *eid, double tolerance, bool wireframe, std::vector< double > &points, std::vector< double > &normals, std::vector< int > &pointsPerStrip) |
Returns polygon/vector information for an entity. More... | |
std::vector< NXString > | GetShowableHideableTypes () |
Returns an array of all Registered ShowHideType strings. More... | |
int | HideByType (NXOpen::DisplayManager::ShowHideType type, NXOpen::DisplayManager::ShowHideScope scope) |
Hides a set of objects by type. More... | |
int | HideByType (const NXString &type, NXOpen::DisplayManager::ShowHideScope scope) |
Hides a set of objects by type. More... | |
int | HideByType (const char *type, NXOpen::DisplayManager::ShowHideScope scope) |
Hides a set of objects by type. More... | |
void | MakeUpToDate () |
Ensures that previously invoked display operations are complete. More... | |
NXOpen::DisplayModification * | NewDisplayModification () |
Constructs a new NXOpen::DisplayModification object. More... | |
void | SetFacetCacheMemoryLevel (NXOpen::DisplayManager::FacetCacheMemoryLevelType memoryLevel) |
Sets the memory level of the display facet cache system. More... | |
void | ShowAdjacent (const std::vector< NXOpen::DisplayableObject * > &objects) |
Display objects adjacent to a set of displayable objects(NXOpen::CAE::CAEFace , NXOpen::CAE::CAEEdge ). More... | |
int | ShowByType (NXOpen::DisplayManager::ShowHideType type, NXOpen::DisplayManager::ShowHideScope scope) |
Shows a set of objects by type. More... | |
int | ShowByType (const NXString &type, NXOpen::DisplayManager::ShowHideScope scope) |
Shows a set of objects by type. More... | |
int | ShowByType (const char *type, NXOpen::DisplayManager::ShowHideScope scope) |
Shows a set of objects by type. More... | |
void | ShowNodesRelatedToDisplayedElements (bool includeInteriorNodes) |
Display all nodes related to displayed elements. More... | |
void | ShowObjects (const std::vector< NXOpen::DisplayableObject * > &objects, NXOpen::DisplayManager::LayerSetting layerSetting) |
Unblank a set of displayable objects considering the following layer settings if the objects are in invisible layers. More... | |
void | ShowOnly (const std::vector< NXOpen::DisplayableObject * > &objects) |
Show a set of displayable objects. More... | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
void | UnblankObjects (const std::vector< NXOpen::DisplayableObject * > &objects) |
Unblank a set of displayable objects. More... | |
Represents an object to manage display settings.
Input to this class can be PSM facet objects.
To obtain an instance of this class, refer to NXOpen::Session
Created in NX3.0.0.
Facet cache memory level.
See NXOpen::DisplayManager::FacetCacheMemoryLevel and NXOpen::DisplayManager::SetFacetCacheMemoryLevel
Enumerator | |
---|---|
FacetCacheMemoryLevelTypeNone |
none |
FacetCacheMemoryLevelTypeOne |
one |
FacetCacheMemoryLevelTypeTwo |
two |
FacetCacheMemoryLevelTypeThree |
three |
Represents the layer settings when the objects to show are in invisible layers.
Controls the scope for the show hide operation.
See ShowByType and HideByType
Enumerator | |
---|---|
ShowHideScopeAnyInAssembly |
Show and hide objects from the entire displayed part. |
ShowHideScopeWorkPartAndOccurrence |
Show and hide objects only from the work part and its children. |
Controls the type of object to show or hide.
See ShowByType and HideByType
void NXOpen::DisplayManager::BlankObjects | ( | const std::vector< NXOpen::DisplayableObject * > & | objects | ) |
Blank a set of displayable objects.
You may want to use NXOpen::View::FitAfterShowOrHide after using this method. Some displayable objects are not valid for this method and, if found in the objects input, will be ignored. These include face and edge objects of solid bodies.
Created in NX3.0.0.
License requirements : None
objects | objects |
NXOpen::DisplayManager::FacetCacheMemoryLevelType NXOpen::DisplayManager::FacetCacheMemoryLevel | ( | ) |
Returns the memory level of the display facet cache system.
Facet cache memory level is used to manage the memory footprint of the display facet cache. Higher memory level implies higher memory footprint.
Facet caching can be turned off by setting the memory level to NXOpen::DisplayManager::FacetCacheMemoryLevelTypeNone . For all other memory levels, the display system will attempt to perform periodic cleanup if it detects that NX is experiencing memory pressure. The extent of cleanup depends on the memory level. Lower memory level indicates that more cleanup is desired to keep loweer memory footprint. Note that low memory level can slow down rendering performance due to absence of facet data in the facet cache.
Created in NX10.0.0.
License requirements : None
std::vector<NXOpen::DisplayManager::J3dData> NXOpen::DisplayManager::GetJ3dData | ( | ) |
Returns the list of displayable entities along with display information for each entity in the displayed part.
bool NXOpen::DisplayManager::GetJ3dGeometry | ( | NXOpen::DisplayableObject * | eid, |
double | tolerance, | ||
bool | wireframe, | ||
std::vector< double > & | points, | ||
std::vector< double > & | normals, | ||
std::vector< int > & | pointsPerStrip | ||
) |
Returns polygon/vector information for an entity.
eid | entity to tesselate |
tolerance | adjustment factor for tesselation tolerance |
wireframe | if true generates wireframe solids |
points | polygon/vector points |
normals | polygon normals |
pointsPerStrip | points for each triangle strip |
std::vector<NXString> NXOpen::DisplayManager::GetShowableHideableTypes | ( | ) |
Returns an array of all Registered ShowHideType strings.
int NXOpen::DisplayManager::HideByType | ( | NXOpen::DisplayManager::ShowHideType | type, |
NXOpen::DisplayManager::ShowHideScope | scope | ||
) |
Hides a set of objects by type.
You may want to use NXOpen::View::FitAfterShowOrHide after using this method.
Created in NX5.0.0.
License requirements : None
type | The type of object to hide |
scope | The scope for the show hide operation |
int NXOpen::DisplayManager::HideByType | ( | const NXString & | type, |
NXOpen::DisplayManager::ShowHideScope | scope | ||
) |
Hides a set of objects by type.
You may want to use NXOpen::View::FitAfterShowOrHide after using this method.
type | The type of object to hide |
scope | The scope for the show hide operation |
int NXOpen::DisplayManager::HideByType | ( | const char * | type, |
NXOpen::DisplayManager::ShowHideScope | scope | ||
) |
Hides a set of objects by type.
You may want to use NXOpen::View::FitAfterShowOrHide after using this method.
type | The type of object to hide |
scope | The scope for the show hide operation |
void NXOpen::DisplayManager::MakeUpToDate | ( | ) |
Ensures that previously invoked display operations are complete.
Called only by NXOpen applications that directly invoke Windows, MFC, or Motif functions to display dialogs. This function is not needed when NXOpen dialogs are used.
Created in NX3.0.0.
License requirements : None
NXOpen::DisplayModification* NXOpen::DisplayManager::NewDisplayModification | ( | ) |
Constructs a new NXOpen::DisplayModification object.
void NXOpen::DisplayManager::SetFacetCacheMemoryLevel | ( | NXOpen::DisplayManager::FacetCacheMemoryLevelType | memoryLevel | ) |
Sets the memory level of the display facet cache system.
Facet cache memory level is used to manage the memory footprint of the display facet cache. Higher memory level implies higher memory footprint.
Facet caching can be turned off by setting the memory level to NXOpen::DisplayManager::FacetCacheMemoryLevelTypeNone . For all other memory levels, the display system will attempt to perform periodic cleanup if it detects that NX is experiencing memory pressure. The extent of cleanup depends on the memory level. Lower memory level indicates that more cleanup is desired to keep loweer memory footprint. Note that low memory level can slow down rendering performance due to absence of facet data in the facet cache.
Created in NX10.0.0.
License requirements : None
memoryLevel | memorylevel |
void NXOpen::DisplayManager::ShowAdjacent | ( | const std::vector< NXOpen::DisplayableObject * > & | objects | ) |
Display objects adjacent to a set of displayable objects(NXOpen::CAE::CAEFace , NXOpen::CAE::CAEEdge ).
If NXOpen::CAE::CAEFace selected, display all it's neighbouring faces and associated edges. If NXOpen::CAE::CAEEdge selected, display it's associated faces and their associated edges.
Created in NX5.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
objects | objects |
int NXOpen::DisplayManager::ShowByType | ( | NXOpen::DisplayManager::ShowHideType | type, |
NXOpen::DisplayManager::ShowHideScope | scope | ||
) |
Shows a set of objects by type.
You may want to use NXOpen::View::FitAfterShowOrHide after using this method.
Created in NX5.0.0.
License requirements : None
type | The type of object to show |
scope | The scope for the show hide operation |
int NXOpen::DisplayManager::ShowByType | ( | const NXString & | type, |
NXOpen::DisplayManager::ShowHideScope | scope | ||
) |
Shows a set of objects by type.
You may want to use NXOpen::View::FitAfterShowOrHide after using this method.
type | The type of object to show |
scope | The scope for the show hide operation |
int NXOpen::DisplayManager::ShowByType | ( | const char * | type, |
NXOpen::DisplayManager::ShowHideScope | scope | ||
) |
Shows a set of objects by type.
You may want to use NXOpen::View::FitAfterShowOrHide after using this method.
type | The type of object to show |
scope | The scope for the show hide operation |
void NXOpen::DisplayManager::ShowNodesRelatedToDisplayedElements | ( | bool | includeInteriorNodes | ) |
Display all nodes related to displayed elements.
This function will do nothing if NXOpen::CAE::ModelDisplayBuilder has the node display mode set to NXOpen::CAE::ModelDisplayBuilder::NodeDisplayModeTypeImplicit
Created in NX8.5.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
includeInteriorNodes | includeinteriornodes |
void NXOpen::DisplayManager::ShowObjects | ( | const std::vector< NXOpen::DisplayableObject * > & | objects, |
NXOpen::DisplayManager::LayerSetting | layerSetting | ||
) |
Unblank a set of displayable objects considering the following layer settings if the objects are in invisible layers.
Created in NX5.0.2.
License requirements : None
objects | objects |
layerSetting | Layer setting option |
void NXOpen::DisplayManager::ShowOnly | ( | const std::vector< NXOpen::DisplayableObject * > & | objects | ) |
Show a set of displayable objects.
The objects selectable are: NXOpen::Curve , NXOpen::Point , NXOpen::CAE::MeshPoint , CSYS, NXOpen::Plane , Mesh, NXOpen::CAE::CAEBody , NXOpen::CAE::CAEFace , Load, Constraint and Simulation Object. You may want to use NXOpen::View::FitAfterShowOrHide after using this method.
Created in NX5.0.0.
License requirements : nx_masterfem ("Finite Element Modeling") OR nx_design_sim ("NX Design Simulation")
objects | objects |
tag_t NXOpen::DisplayManager::Tag | ( | ) | const |
Returns the tag of this object.
void NXOpen::DisplayManager::UnblankObjects | ( | const std::vector< NXOpen::DisplayableObject * > & | objects | ) |
Unblank a set of displayable objects.
You may want to use NXOpen::View::FitAfterShowOrHide after using this method. Some displayable objects are not valid for this method and, if found in the objects input, will be ignored. These include face and edge objects of solid bodies.
Created in NX3.0.0.
License requirements : None
objects | objects |