NX Open C++ Reference Guide
|
Represents a collection of View s. More...
Classes | |
class | iterator |
Iterator for accessing the contents of the collection. More... | |
Public Member Functions | |
iterator | begin () |
Returns an iterator addressing the first element. | |
NXOpen::Display::Background * | CreateBackground (NXOpen::View *view, bool makeReferencedObjects) |
Creates a Display::Background. | |
NXOpen::Display::ExtractScene * | CreateExtractScene (NXOpen::View *view) |
Creates a Display::ExtractScene. | |
NXOpen::Display::GlobalIlluminationBuilder * | CreateGlobalIlluminationBuilder () |
Creates a Display::GlobalIlluminationBuilder. | |
NXOpen::Display::Image * | CreateImage (NXOpen::View *view) |
Creates a Display::Image. | |
NXOpen::Display::ImageBasedLighting * | CreateImageBasedLighting (NXOpen::View *view, bool makeReferencedObjects) |
Creates a Display::ImageBasedLighting. | |
NXOpen::Display::LightBuilder * | CreateLightBuilder (NXOpen::Light *light) |
Creates a Display::LightBuilder. | |
NXOpen::Display::Lighting * | CreateLighting (NXOpen::View *view) |
Creates a Display::Lighting. | |
NXOpen::Display::NonProportionalZoom * | CreateNonProportionalZoom () |
Creates a Display::NonProportionalZoom. | |
NXOpen::Display::RayTracedStudioBuilder * | CreateRayTracedStudioBuilder () |
Creates a Display::RayTracedStudioBuilder. | |
NXOpen::Display::RayTracedStudioEditorBuilder * | CreateRayTracedStudioEditorBuilder () |
Creates a Display::RayTracedStudioEditorBuilder. | |
NXOpen::Display::Reflection * | CreateReflection (NXOpen::View *view, bool makeReferencedObjects) |
Creates a Display::Reflection. | |
NXOpen::Display::SaveImageFileBrowserBuilder * | CreateSaveImageFileBrowserBuilder () |
Creates a Display::SaveImageFileBrowserBuilder. | |
NXOpen::Display::Scene * | CreateScene (NXOpen::View *view, bool makeReferencedObjects) |
Creates a Display::Scene. | |
NXOpen::Display::Shadows * | CreateShadows (NXOpen::View *view) |
Creates a Display::Shadows. | |
NXOpen::Display::Stage * | CreateStage (NXOpen::View *view, bool makeReferencedObjects) |
Creates a Display::Stage. | |
NXOpen::Display::StudioImageCaptureBuilder * | CreateStudioImageCaptureBuilder () |
Creates a Display::StudioImageCaptureBuilder. | |
NXOpen::Display::Wall * | CreateWall (NXOpen::View *view, NXOpen::Display::Stage::WallType wallType) |
Creates a Display::Wall. | |
iterator | end () |
Returns an iterator addressing one past the last element. | |
NXOpen::View * | FindObject (const NXString &journalIdentifier) |
Finds the View with the given identifier as recorded in a journal. | |
NXOpen::View * | FindObject (const char *journalIdentifier) |
Finds the View with the given identifier as recorded in a journal. | |
void | FitAll () |
Adjusts the center and scale of each view in the current layout such that all of each view is visible, except that this fit operation is not applied to member views on a drawing. | |
std::vector< NXOpen::View * > | GetActiveViews () |
Returns the active views in the view collection. | |
std::vector< NXString > | GetCustomViews () |
Returns a list of custom view names in the view collection. | |
bool | IsWorkViewExpanded () |
Returns whether the work view of the given part is in expand state. | |
void | Refresh () |
Refreshes all the views in the current layout Created in NX3.0.0. | |
void | Regenerate () |
Regenerates the display of each view in the current layout. | |
void | Save () |
Saves current view. | |
NXOpen::View * | SaveAs (NXOpen::View *selectedView, const NXString &newViewName, bool copyViewModifications, bool moveViewDependencies) |
Saves a view with user specified name. | |
NXOpen::View * | SaveAs (NXOpen::View *selectedView, const char *newViewName, bool copyViewModifications, bool moveViewDependencies) |
Saves a view with user specified name. | |
NXOpen::View * | SaveAsPreservingCase (NXOpen::View *selectedView, const NXString &newViewName, bool copyViewModifications, bool moveViewDependencies) |
Preserve case for user defined view names. | |
NXOpen::View * | SaveAsPreservingCase (NXOpen::View *selectedView, const char *newViewName, bool copyViewModifications, bool moveViewDependencies) |
Preserve case for user defined view names. | |
tag_t | Tag () const |
Returns the tag of this object. | |
void | UnexpandWork () |
Removes the work view from the expand state (assuming that it is in that state), restoring it to its normal size in its layout. | |
void | UpdateDisplay () |
Updates the display of each view in the current layout. | |
NXOpen::View * | WorkView () |
Returns the work view of the part. | |
Represents a collection of View s.
To obtain an instance of this class, refer to BasePart
Created in NX3.0.0.
iterator NXOpen::ViewCollection::begin | ( | ) |
Returns an iterator addressing the first element.
NXOpen::Display::Background* NXOpen::ViewCollection::CreateBackground | ( | NXOpen::View * | view, |
bool | makeReferencedObjects | ||
) |
Creates a Display::Background.
view | view to which background data will be associated |
makeReferencedObjects | true if referenced image object is to be created |
NXOpen::Display::ExtractScene* NXOpen::ViewCollection::CreateExtractScene | ( | NXOpen::View * | view | ) |
Creates a Display::ExtractScene.
view | view to which to extract the scene data will be associated |
NXOpen::Display::GlobalIlluminationBuilder* NXOpen::ViewCollection::CreateGlobalIlluminationBuilder | ( | ) |
Creates a Display::GlobalIlluminationBuilder.
NXOpen::Display::Image* NXOpen::ViewCollection::CreateImage | ( | NXOpen::View * | view | ) |
Creates a Display::Image.
view | view to which image data will be associated |
NXOpen::Display::ImageBasedLighting* NXOpen::ViewCollection::CreateImageBasedLighting | ( | NXOpen::View * | view, |
bool | makeReferencedObjects | ||
) |
Creates a Display::ImageBasedLighting.
view | view to which image-based lighting data will be associated |
makeReferencedObjects | true if referenced image object is to be created |
NXOpen::Display::LightBuilder* NXOpen::ViewCollection::CreateLightBuilder | ( | NXOpen::Light * | light | ) |
Creates a Display::LightBuilder.
light | light for which data will be modified |
NXOpen::Display::Lighting* NXOpen::ViewCollection::CreateLighting | ( | NXOpen::View * | view | ) |
Creates a Display::Lighting.
view | view to which lighting data will be associated |
NXOpen::Display::NonProportionalZoom* NXOpen::ViewCollection::CreateNonProportionalZoom | ( | ) |
Creates a Display::NonProportionalZoom.
NXOpen::Display::RayTracedStudioBuilder* NXOpen::ViewCollection::CreateRayTracedStudioBuilder | ( | ) |
Creates a Display::RayTracedStudioBuilder.
NXOpen::Display::RayTracedStudioEditorBuilder* NXOpen::ViewCollection::CreateRayTracedStudioEditorBuilder | ( | ) |
Creates a Display::RayTracedStudioEditorBuilder.
NXOpen::Display::Reflection* NXOpen::ViewCollection::CreateReflection | ( | NXOpen::View * | view, |
bool | makeReferencedObjects | ||
) |
Creates a Display::Reflection.
view | view to which reflection data will be associated |
makeReferencedObjects | true if referenced image object is to be created |
NXOpen::Display::SaveImageFileBrowserBuilder* NXOpen::ViewCollection::CreateSaveImageFileBrowserBuilder | ( | ) |
Creates a Display::SaveImageFileBrowserBuilder.
NXOpen::Display::Scene* NXOpen::ViewCollection::CreateScene | ( | NXOpen::View * | view, |
bool | makeReferencedObjects | ||
) |
Creates a Display::Scene.
view | view to which scene data will be associated |
makeReferencedObjects | true if scene objects are to be created |
NXOpen::Display::Shadows* NXOpen::ViewCollection::CreateShadows | ( | NXOpen::View * | view | ) |
Creates a Display::Shadows.
view | view to which shadows data will be associated |
NXOpen::Display::Stage* NXOpen::ViewCollection::CreateStage | ( | NXOpen::View * | view, |
bool | makeReferencedObjects | ||
) |
Creates a Display::Stage.
view | view to which stage data will be associated |
makeReferencedObjects | true if first wall's image object is to be created |
NXOpen::Display::StudioImageCaptureBuilder* NXOpen::ViewCollection::CreateStudioImageCaptureBuilder | ( | ) |
Creates a Display::StudioImageCaptureBuilder.
NXOpen::Display::Wall* NXOpen::ViewCollection::CreateWall | ( | NXOpen::View * | view, |
NXOpen::Display::Stage::WallType | wallType | ||
) |
Creates a Display::Wall.
view | view to which stage data will be associated |
wallType | where the wall sits in the Display.Stage |
iterator NXOpen::ViewCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
NXOpen::View* NXOpen::ViewCollection::FindObject | ( | const NXString & | journalIdentifier | ) |
Finds the View with the given identifier as recorded in a journal.
An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.
An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier | Identifier of the view to be found |
NXOpen::View* NXOpen::ViewCollection::FindObject | ( | const char * | journalIdentifier | ) |
Finds the View with the given identifier as recorded in a journal.
An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.
An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier | Identifier of the view to be found |
void NXOpen::ViewCollection::FitAll | ( | ) |
Adjusts the center and scale of each view in the current layout such that all of each view is visible, except that this fit operation is not applied to member views on a drawing.
If the work view is in expand state when this method is called, the work view is unexpanded before all of the views are fit.
In batch mode, the data for each view is updated, but no display occurs.
Created in NX4.0.0.
License requirements : None
std::vector<NXOpen::View *> NXOpen::ViewCollection::GetActiveViews | ( | ) |
Returns the active views in the view collection.
std::vector<NXString> NXOpen::ViewCollection::GetCustomViews | ( | ) |
Returns a list of custom view names in the view collection.
bool NXOpen::ViewCollection::IsWorkViewExpanded | ( | ) |
Returns whether the work view of the given part is in expand state.
void NXOpen::ViewCollection::Refresh | ( | ) |
Refreshes all the views in the current layout
Created in NX3.0.0.
License requirements : None
void NXOpen::ViewCollection::Regenerate | ( | ) |
Regenerates the display of each view in the current layout.
The current scale of each view is used in determing the tolerances for rendering curves and facets within the view.
In batch mode, the state of each view is updated, but no display occurs.
Created in NX4.0.0.
License requirements : None
void NXOpen::ViewCollection::Save | ( | ) |
Saves current view.
Created in NX3.0.0.
License requirements : None
NXOpen::View* NXOpen::ViewCollection::SaveAs | ( | NXOpen::View * | selectedView, |
const NXString & | newViewName, | ||
bool | copyViewModifications, | ||
bool | moveViewDependencies | ||
) |
Saves a view with user specified name.
selectedView | Selected view |
newViewName | Selected name of the view |
copyViewModifications | True if view modifications to be copied |
moveViewDependencies | True if view dependencies to be moved |
NXOpen::View* NXOpen::ViewCollection::SaveAs | ( | NXOpen::View * | selectedView, |
const char * | newViewName, | ||
bool | copyViewModifications, | ||
bool | moveViewDependencies | ||
) |
Saves a view with user specified name.
selectedView | Selected view |
newViewName | Selected name of the view |
copyViewModifications | True if view modifications to be copied |
moveViewDependencies | True if view dependencies to be moved |
NXOpen::View* NXOpen::ViewCollection::SaveAsPreservingCase | ( | NXOpen::View * | selectedView, |
const NXString & | newViewName, | ||
bool | copyViewModifications, | ||
bool | moveViewDependencies | ||
) |
Preserve case for user defined view names.
selectedView | Selected view |
newViewName | Selected name of the view |
copyViewModifications | True if view modifications to be copied |
moveViewDependencies | True if view dependencies to be moved |
NXOpen::View* NXOpen::ViewCollection::SaveAsPreservingCase | ( | NXOpen::View * | selectedView, |
const char * | newViewName, | ||
bool | copyViewModifications, | ||
bool | moveViewDependencies | ||
) |
Preserve case for user defined view names.
selectedView | Selected view |
newViewName | Selected name of the view |
copyViewModifications | True if view modifications to be copied |
moveViewDependencies | True if view dependencies to be moved |
tag_t NXOpen::ViewCollection::Tag | ( | ) | const |
Returns the tag of this object.
void NXOpen::ViewCollection::UnexpandWork | ( | ) |
Removes the work view from the expand state (assuming that it is in that state), restoring it to its normal size in its layout.
Other views in the layout become visible again. If the work view is not in expand state, an error is returned. The view remains the work view unless the view is a member view on a drawing sheet, in which case the sheet's view becomes the work view. The given part must be the displayed part.
In batch mode, the internal state of the view is no longer in expand state, but no display occurs.
Created in NX4.0.0.
License requirements : None
void NXOpen::ViewCollection::UpdateDisplay | ( | ) |
Updates the display of each view in the current layout.
This method redisplays those objects whose display has become out of date due to rotations of the view or increases in view scale. For example: Following a rotation, the silhouettes of bodies in wireframe mode will be updated; Following a significant scale increase, the faces of a body in shaded mode will be tessalated with tighter tolerances.
In batch mode, the state of each view is updated, but no display occurs.
Created in NX4.0.0.
License requirements : None
NXOpen::View* NXOpen::ViewCollection::WorkView | ( | ) |
Returns the work view of the part.
Created in NX3.0.0.
License requirements : None