NX Open C++ Reference Guide
|
Manages the display and changes to it
To obtain an instance of this class, refer to Session
Created in NX3.0.0.
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. | |
std::vector < NXOpen::DisplayManager::J3dData > | GetJ3dData () |
Returns the list of displayable entities along with display information for each entity in the displayed part. | |
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. | |
std::vector< NXString > | GetShowableHideableTypes () |
Returns an array of all Registered ShowHideType strings. | |
int | HideByType (NXOpen::DisplayManager::ShowHideType type, NXOpen::DisplayManager::ShowHideScope scope) |
Hides a set of objects by type. | |
int | HideByType (const NXString &type, NXOpen::DisplayManager::ShowHideScope scope) |
Hides a set of objects by type. | |
int | HideByType (const char *type, NXOpen::DisplayManager::ShowHideScope scope) |
Hides a set of objects by type. | |
void | MakeUpToDate () |
Ensures that previously invoked display operations are complete. | |
NXOpen::DisplayModification * | NewDisplayModification () |
Constructs a new DisplayModification object. | |
void | ShowAdjacent (const std::vector< NXOpen::DisplayableObject * > &objects) |
Display objects adjacent to a set of displayable objects(CAE::CAEFace , CAE::CAEEdge ). | |
int | ShowByType (NXOpen::DisplayManager::ShowHideType type, NXOpen::DisplayManager::ShowHideScope scope) |
Shows a set of objects by type. | |
int | ShowByType (const NXString &type, NXOpen::DisplayManager::ShowHideScope scope) |
Shows a set of objects by type. | |
int | ShowByType (const char *type, NXOpen::DisplayManager::ShowHideScope scope) |
Shows a set of objects by type. | |
void | ShowNodesRelatedToDisplayedElements (bool includeInteriorNodes) |
Display all nodes related to displayed elements. | |
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. | |
void | ShowOnly (const std::vector< NXOpen::DisplayableObject * > &objects) |
Show a set of displayable objects. | |
tag_t | Tag () const |
Returns the tag of this object. | |
void | UnblankObjects (const std::vector< NXOpen::DisplayableObject * > &objects) |
Unblank a set of displayable objects. | |
Manages the display and changes to it
To obtain an instance of this class, refer to Session
Created in NX3.0.0.
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
Controls the type of object to show or hide.
See ShowByType and HideByType
ShowHideTypeAll |
Show or hide all of the following objects. |
ShowHideTypeGeometry |
Show or hide all geometry objects. This includes all bodies, components, and datums |
ShowHideTypeBodies |
Show or hide all bodies. This includes solid, sheet, and facetted bodies |
ShowHideTypeComponents |
Show or hide components. |
ShowHideTypeSolidBodies |
Show or hide solid bodies. |
ShowHideTypeSheetBodies |
Show or hide sheet bodies. |
ShowHideTypeFacetedBodies |
Show or hide faceted bodies. |
ShowHideTypePolygonBodies |
Show or hide polygon bodies. |
ShowHideTypeSheetPolygonBodies |
Show or hide sheet polygon bodies. |
ShowHideTypeSolidPolygonBodies |
Show or hide solid polygon bodies. |
ShowHideTypeMidsurfacePolygonBodies |
Show or hide midsurface polygon bodies. |
ShowHideTypeFromMeshPolygonBodies |
Show or hide from mesh polygon bodies. |
ShowHideTypeFlowPolygonBodies |
Show or hide flow polygon bodies. |
ShowHideTypeDatums |
Show or hide Datums i.e Coordinate Systems Datum Axes, Datum Planes, Datum Plane Grids, Points. |
ShowHideTypePoints |
Show or hide points. |
ShowHideTypeDatumAxes |
Show or hide datum axes. |
ShowHideTypeDatumPlanes |
Show or hide datum planes. |
ShowHideTypeDatumPlaneGrids |
Show or hide datum plane grids. |
ShowHideTypeEntitySelectionPlanes |
Show or hide entity selection planes. |
ShowHideTypeCsys |
Show or hide coordinate systems. |
ShowHideTypeSketches |
Show or hide sketches. |
ShowHideTypeCurves |
Show or hide curves. |
ShowHideTypeInfiniteLines |
Show or hide infinite lines. |
ShowHideTypeDraftingAnnotations |
Show or hide all drafting types. This includes drafting notes, dimensions, symbols and gdt |
ShowHideTypeDraftingDimensions |
Show or hide drafting dimensions. |
ShowHideTypeDraftingNotes |
Show or hide drafting notes. |
ShowHideTypeDraftingSymbols |
Show or hide drafting symbols. |
ShowHideTypeDraftingGdt |
Show or hide drafting gdt. |
ShowHideTypePmi |
Show or hide all pmi types. This includes pmi notes, dimensions, symbols and gdt |
ShowHideTypePmiDimensions |
Show or hide pmi dimensions. |
ShowHideTypePmiNotes |
Show or hide pmi notes. |
ShowHideTypePmiSymbols |
Show or hide pmi symbols. |
ShowHideTypePmiGdt |
Show or hide pmi gdt. |
ShowHideTypeAssemblyConstraints |
Show or hide assembly constraints. |
ShowHideTypePmiGeometry |
Show or hide pmi geometry. |
ShowHideTypeCaeEntities |
Show or hide all CAE entities. |
ShowHideTypeMeshes |
Show or hide all mesh types. |
ShowHideTypeMesh0d |
Show or hide all 0d meshes. |
ShowHideTypeMesh0dConcentratedMass |
Show or hide all 0d concentrated mass meshes. |
ShowHideTypeMesh0dDistributedMass |
Show or hide all 0d distributed mass meshes. |
ShowHideTypeMesh0dHeatBody |
Show or hide all 0d heat body meshes. |
ShowHideTypeMesh0dNodeToGround |
Show or hide all 0d node to ground meshes. |
ShowHideTypeMesh1d |
Show or hide all 1d mesh types. |
ShowHideTypeMesh1dBar |
Show or hide all 1d bar mesh types. |
ShowHideTypeMesh1dBeam |
Show or hide all 1d beam mesh types. |
ShowHideTypeMesh1dRod |
Show or hide all 1d rod mesh types. |
ShowHideTypeMesh1dBearing |
Show or hide all 1d bearing mesh types. |
ShowHideTypeMesh1dRigidLink |
Show or hide all 1d rigid link mesh types. |
ShowHideTypeMesh1dInterpolation |
Show or hide all 1d interpolation mesh types. |
ShowHideTypeMesh1dSpring |
Show or hide all 1d spring mesh types. |
ShowHideTypeMesh1dEdgeContact |
Show or hide all 1d edge contact mesh types. |
ShowHideTypeMesh1dFaceContact |
Show or hide all 1d face contact mesh types. |
ShowHideTypeMesh1dWeld |
Show or hide all 1d weld mesh types. |
ShowHideTypeMesh1dEdgeFaceConnection |
Show or hide all 1d edge face connection mesh types. |
ShowHideTypeMesh1dPlotel |
Show or hide all 1d PLOTEL mesh types. |
ShowHideTypeMesh1dMass |
Show or hide all 1d massmesh types. |
ShowHideTypeMesh2d |
Show or hide all 2d meshes. |
ShowHideTypeMesh2dTri3 |
Show or hide all 2d meshes with triangular 3 node elements. |
ShowHideTypeMesh2dTri6 |
Show or hide all 2d meshes with triangular 6 node elements. |
ShowHideTypeMesh2dQuad4 |
Show or hide all 2d meshes with quadrilateral 4 node elements. |
ShowHideTypeMesh2dQuad8 |
Show or hide all 2d meshes with quadrilateral 8 node elements. |
ShowHideTypeMesh3d |
Show or hide all 3d meshes. |
ShowHideTypeMesh3dTet4 |
Show or hide all 3d meshes with tetrahedral 4 node elements. |
ShowHideTypeMesh3dTet10 |
Show or hide all 3d meshes with tetrahedral 10 node elements. |
ShowHideTypeMesh3dTetMixed |
Show or hide all 3d meshes with tetrahedral elements with dropped mid-nodes. |
ShowHideTypeMesh3dHex8 |
Show or hide all 3d meshes with hexahedral elements with 8 nodes. |
ShowHideTypeMesh3dHex20 |
Show or hide all 3d meshes with hexahedral elements with 20 nodes. |
ShowHideTypeMesh3dWedge6 |
Show or hide all 3d meshes with wedge elements with 6 nodes. |
ShowHideTypeMesh3dWedge15 |
Show or hide all 3d meshes with wedge elements with 15 nodes. |
ShowHideTypeMesh3dPyramid5 |
Show or hide all 3d meshes with pyramid elements with 5 nodes. |
ShowHideTypeMesh3dPyramid13 |
Show or hide all 3d meshes with pyramid elements with 13 nodes. |
ShowHideTypeMesh3dPyramidMixed |
Show or hide all 3d meshes with pyramid elements with dropped mid-nodes. |
ShowHideTypeDrawingObjects |
Show or hide all drafting types. This includes drafting dimensions, Annotations, Custom Symbols, Tables and Images. |
ShowHideTypeDrawingDimensions |
Show or hide all drafting dimensions. |
ShowHideTypeDrawingAnnotation |
Show or hide all drafting annotations. This includes drafting Notes, Feature Control Frames, Datum Feature Symbols, Datum Targets, Balloons, Surface Finish Symbol, Weld Symbol, Target Point Symbol, Intersection Symbol, Crosshatch, Area Fill and Centerlines. |
ShowHideTypeDrawingNotes |
Show or hide all drafting Notes. |
ShowHideTypeDrawingFeatureControlFrame |
Show or hide all drafting Feature Control Frames. |
ShowHideTypeDrawingDatumFeatureSymbols |
Show or hide all drafting Datum Feature Symbols. |
ShowHideTypeDrawingDatumTargets |
Show or hide all drafting Datum Targets. |
ShowHideTypeDrawingBalloons |
Show or hide all drafting Balloons. |
ShowHideTypeDrawingSurfaceFinishSymbols |
Show or hide all drafting Surface Finish Symbols. |
ShowHideTypeDrawingWeldSymbols |
Show or hide all drafting Weld Symbols. |
ShowHideTypeDrawingTargetPointSymbols |
Show or hide all drafting Target Point Symbols. |
ShowHideTypeDrawingIntersectionSymbols |
Show or hide all drafting Intersection Symbols. |
ShowHideTypeDrawingCrosshatch |
Show or hide all drafting Crosshatch. |
ShowHideTypeDrawingAreaFill |
Show or hide all drafting Area Fill. |
ShowHideTypeDrawingCenterlines |
Show or hide all drafting Centerlines. |
ShowHideTypeDrawingCustomSymbols |
Show or hide all all drafting Custom Symbols. |
ShowHideTypeDrawingTables |
Show or hide all drafting tables. This includes Tabular Notes, Parts Lists and Title Blocks. |
ShowHideTypeDrawingTabularNotes |
Show or hide all Tabular Notes. |
ShowHideTypeDrawingPartsLists |
Show or hide all Parts Lists. |
ShowHideTypeDrawingTitleBlocks |
Show or hide all Title Blocks. |
ShowHideTypeDrawingHoleTables |
Show or hide all Hole Tables. |
ShowHideTypeDrawingImages |
Show or hide all Images. |
ShowHideTypePmiObject |
Show or hide all pmi objects. |
ShowHideTypePmiObjectDimensions |
Show or hide all pmi dimensions. |
ShowHideTypePmiAnnotations |
Show or hide all pmi annotations. |
ShowHideTypePmiObjectNotes |
Show or hide all pmi notes. |
ShowHideTypePmiFeatureControlFrames |
Show or hide all pmi feature control frames. |
ShowHideTypePmiDatumFeatureSymbols |
Show or hide all pmi datum feature symbols. |
ShowHideTypePmiDatumTargets |
Show or hide all pmi datum targets. |
ShowHideTypePmiBalloons |
Show or hide all pmi balloons. |
ShowHideTypePmiSurfaceFinishSymbols |
Show or hide all pmi surface finish symbols. |
ShowHideTypePmiWeldSymbols |
Show or hide all pmi weld symbols. |
ShowHideTypePmiCenterlines |
Show or hide all pmi centerlines. |
ShowHideTypePmiRegions |
Show or hide all pmi regions. |
ShowHideTypePmiCustomSymbols |
Show or hide all pmi custom symbols. |
ShowHideTypeComponents2d |
Show or hide 2d components. |
ShowHideTypeImages |
Show or hide all images. This includes raster images. |
ShowHideTypeRasterImage |
Show or hide raster images. |
ShowHideTypeMeshControls |
Show or hide all mesh controls. |
ShowHideTypeMeshControlsEdgeDensity |
Show or hide all mesh controls - edge density. |
ShowHideTypeMeshControlsMappedEdgeDensity |
Show or hide all mesh controls - mapped edge density. |
ShowHideTypeMeshControlsFaceDensity |
Show or hide all mesh controls - face density. |
ShowHideTypeMeshControlsMappedHoleDensity |
Show or hide all mesh controls - mapped hole density. |
ShowHideTypeMeshControlsWeldRowDensity |
Show or hide all mesh controls - weld row density. |
ShowHideTypeMeshControlsFilletDensity |
Show or hide all mesh controls - fillet density. |
ShowHideTypeMeshControlsCylinderDensity |
Show or hide all mesh controls - cylinder density. |
ShowHideTypeMmc |
Show or hide all mesh mating conditions. |
ShowHideTypeMeshedPolygonBodies |
Show or hide meshed polygon bodies. |
ShowHideTypeUnmeshedPolygonBodies |
Show or hide unmeshed polygon bodies. |
ShowHideTypeMeshPoints |
Show or hide mesh points. |
void NXOpen::DisplayManager::BlankObjects | ( | const std::vector< NXOpen::DisplayableObject * > & | objects | ) |
Blank a set of displayable objects.
You may want to use View::FitAfterShowOrHide after using this method.
Created in NX3.0.0.
License requirements : None
objects | objects |
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 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 View::FitAfterShowOrHide after using this method.
type | The type of object to hide NOTE: The full Unicode character set is not supported for this parameter. |
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 View::FitAfterShowOrHide after using this method.
type | The type of object to hide NOTE: The full Unicode character set is not supported for this parameter. |
scope | The scope for the show hide operation |
void NXOpen::DisplayManager::MakeUpToDate | ( | ) |
NXOpen::DisplayModification* NXOpen::DisplayManager::NewDisplayModification | ( | ) |
Constructs a new DisplayModification object.
@return The new DisplayModification instance
Created in NX3.0.0.
License requirements : None
void NXOpen::DisplayManager::ShowAdjacent | ( | const std::vector< NXOpen::DisplayableObject * > & | objects | ) |
Display objects adjacent to a set of displayable objects(CAE::CAEFace , CAE::CAEEdge ).
If CAE::CAEFace selected, display all it's neighbouring faces and associated edges. If 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 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 View::FitAfterShowOrHide after using this method.
type | The type of object to show NOTE: The full Unicode character set is not supported for this parameter. |
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 View::FitAfterShowOrHide after using this method.
type | The type of object to show NOTE: The full Unicode character set is not supported for this parameter. |
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 CAE::ModelDisplayBuilder has the node display mode set to 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.
<ol> <li>@link DisplayManager::LayerSettingMoveObjectsToWorkLayer DisplayManager::LayerSettingMoveObjectsToWorkLayer@endlink - The objects will be moved to work layer before unblanking the objects if they are in invisible layer.</li> <li>@link DisplayManager::LayerSettingChangeLayerToSelectable DisplayManager::LayerSettingChangeLayerToSelectable@endlink - The objects layer will be changed to selectable if the layer is invisible </li> </ol>
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: Curve , Point , CAE::MeshPoint , CSYS, Plane , Mesh, CAE::CAEBody , CAE::CAEFace , Load, Constraint and Simulation Object. You may want to use 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 View::FitAfterShowOrHide after using this method.
Created in NX3.0.0.
License requirements : None
objects | objects |