ViewController class along with changing the pan, zoom, and orientation of the model display, this controls such things as the display status of analysis results.
It can be called from Application class.
.
More...
Public Member Functions | |
| int | ActiveSubWindowIndex () |
| Returns an index for the active window. More... | |
| bool | CaptureResultView (String &title, String &comment) |
| Captures the result view. More... | |
| void | CascadeSubWindows () |
| Cascades windows. | |
| void | ClearSelect () |
| Clears the selection of an object. | |
| void | CloseActiveSubWindow () |
| Closes the active window. | |
| void | CloseNotActiveSubWindows () |
| Closes all windows except for the active window. | |
| double | ContourMaxValue () |
| Returns the maximum value of contour displayed in the window. More... | |
| double | ContourMinValue () |
| Returns the minimum value of contour displayed in the window. More... | |
| int | CreateView (String &name) |
| Creates a viewpoint to add to the view list. More... | |
| void | DeleteView (String &name) |
| Deletes the viewpoint specified by the name from the view list. More... | |
| void | DeleteViewByIndex (int index) |
| Deletes the viewpoint specified by the index from the view list. More... | |
| void | ExportViewpoints (String &filename, String array &viewpoints) |
| Exports viewpoints to a file. More... | |
| void | Fit () |
| Fits the size of the model to the size of the window. | |
| bool | GetCompositeView () |
| Returns True as the return value if the composite result is displayed. More... | |
| bool | GetContourLabelView () |
| Returns True as the return value if a contour max position label is displayed. More... | |
| bool | GetContourView () |
| Returns True as the return value if a contour plot is displayed. More... | |
| int | GetCurrentCase () |
| Returns the current case ID. More... | |
| Selection * | GetCurrentSelection () |
| Returns the selection object for the current view. | |
| bool | GetCutPlanesOutLinesView () |
| Returns True as the return value when [Show Only Cut Faces] is enabled. More... | |
| bool | GetFluxLineView () |
| Returns True as the return value if a flux line plot is displayed. More... | |
| bool | GetModelCopyView () |
| Returns True as the return value if a model copy is displayed. More... | |
| bool | GetOnlyCutFacesView () |
| Returns True as the return value when [Show Model in Front/Behind Plane] is active. More... | |
| bool | GetOriginalModelView () |
| Returns True as the return value if a original model is displayed. More... | |
| double | GetPhase () |
| Returns the current phase as a real number. More... | |
| bool | GetScaledDisplacementView () |
| Returns True as the return value if the scale is applied to the result display. More... | |
| int | GetStep () |
| Returns the current step number as an integer. More... | |
| bool | GetVectorView () |
| Returns True as the return value if a vector plot is displayed. More... | |
| void | Hiddenline () |
| Switches to the hides lines display. | |
| void | HideAll () |
| Hides all regions. | |
| void | HideAllAirRegions () |
| Hides all air regions. | |
| void | HideAllShells () |
| Hides all shells. | |
| void | HideMorphing () |
| Hides morphing. | |
| void | ImportViewpoints (String &filename) |
| Imports viewpoints from files. More... | |
| void | Iso () |
| Displays an isometric view of the model. | |
| bool | IsSingleton () |
| Since this is an internal function, it is not officially supported. More... | |
| bool | IsValid () |
| Returns True if an object is valid. More... | |
| void | MaximizeActiveSubWindow () |
| Maximizes the active window. | |
| void | NewSubWindow () |
| Duplicates the active window and a new window is opened. | |
| int | NumSubWindows () |
| Returns the number of open windows. | |
| void | Pan (double deltax, double deltay) |
| Controls the panning of a camera. More... | |
| void | Roll (double degree) |
| Rotates the viewpoint of the model on the fixed plane. More... | |
| void | Rotate (double degree_x, double degree_y) |
| Rotates the viewpoint by the specified angle. More... | |
| void | RotateTo (double degree_x, double degree_y, double degree_z) |
| Controls the rotation of a camera. More... | |
| void | SelectByCirclePixelPos (int x1, int y1, int x2, int y2, int type) |
| Uses the pixel coordinate system to make a circular selection. More... | |
| void | SelectByCircleWorldPos (double x1, double y1, double z1, double x2, double y2, double z2, int type) |
| Uses the world coordinate system to make a circular selection. More... | |
| void | SelectByCylinder (Cylinder *cylinder, bool visible) |
| Selects object included in an area by specifying an area in a circle or cylinder. More... | |
| void | SelectByID (int index) |
| Selects object by specifying an ID. More... | |
| void | SelectByPolylinePixelPos (String array &pos, int type) |
| Uses the pixel coordinate system to make a polygonal selection. More... | |
| void | SelectByPolylineWorldPos (String array &pos, int type) |
| Uses geometry obtained from converting a polyhedron in a world coordinate system to a pixel coordinate system to select a range. More... | |
| void | SelectByPosition (double x, double y, double z, bool visible) |
| Selects object in position by specifying coordinates. More... | |
| void | SelectByRange (Point *lower, Point *upper, bool visible) |
| Selects object included in an area by specifying a rectangle or parallelepiped. More... | |
| void | SelectByRectanglePixelPos (int x1, int y1, int x2, int y2, int type) |
| Uses the pixel coordinate system to make a rectangular selection. More... | |
| void | SelectByRectangleWorldPos (double x1, double y1, double z1, double x2, double y2, double z2, int type) |
| Uses geometry obtained from converting a cuboid in a world coordinate system to a pixel coordinate system to select a range. More... | |
| void | SelectEdge () |
| Switches to the edge selection mode. | |
| void | SelectElement () |
| Switches to the element selection mode. | |
| void | SelectElementEdge () |
| Switches to the element edge selection mode. | |
| void | SelectElementFace () |
| Switches to the element face selection mode. | |
| void | SelectElementVertex () |
| Switches to the node selection mode. | |
| void | SelectFace () |
| Switches to the face selection mode. | |
| void | SelectPart () |
| Switches to the the part selection mode. | |
| void | SelectPixelPos (int x, int y, int type) |
| Selects object in position by specifying pixel coordinates. More... | |
| void | SelectVertex () |
| Switches to the vertex selection mode. | |
| void | SelectWorldPos (double x, double y, double z, int type) |
| Selects object in position by specifying world coordinates. More... | |
| void | SetActiveSubWindow (int index) |
| Switches another window to active. More... | |
| void | SetActiveSubWindowSize (int width, int height) |
| Specifies window size. More... | |
| void | SetAllView (String &name) |
| Changes the view of all windows by selecting the viewpoint from the view list. More... | |
| void | SetAllViewByIndex (int index) |
| Changes the view of all windows by specifying view with index in the view list. More... | |
| void | SetCamera (double pos_x, double pos_y, double pos_z, double tar_x, double tar_y, double tar_z, double up_x, double up_y, double up_z, double width, double height) |
| Specifies the camera position. More... | |
| void | SetCompositeView (bool flag) |
| Specifies the flag for displaying the composite result. More... | |
| void | SetContourLabelView (bool flag) |
| Specifies the flag for displaying a contour max position label. More... | |
| void | SetContourView (bool flag) |
| Specifies the flag for displaying a contour plot. More... | |
| void | SetCurrentCase (int currentCase) |
| Specifies the current case ID. More... | |
| void | SetCutPlanesOutLinesView (bool flag) |
| Specifies a flag for enabling [Show Cut Plane Outlines]. More... | |
| void | SetExtendedSelection (bool flag) |
| Switches to the surface selection mode. More... | |
| void | SetFluxLineView (bool flag) |
| Specifies the flag for displaying a flux line plot. More... | |
| void | SetModelCopyView (bool flag) |
| Specifies the flag for displaying a model copy. More... | |
| void | SetOnlyCutFacesView (bool flag) |
| Specifies a flag to set [Show Model in Front/Behind Plane] as active. More... | |
| void | SetOriginalModelView (bool flag) |
| Specifies a flag for displaying the original model. More... | |
| void | SetPhase (double phase) |
| Specifies the current phase. More... | |
| void | SetScaledDisplacementView (bool flag) |
| Specifies a flag for applying the scale to the result display. More... | |
| void | SetSightThrough (bool flag) |
| Switches to the sight through mode. More... | |
| void | SetStep (int step) |
| Specifies the current step number. More... | |
| void | SetVectorView (bool flag) |
| Specifies the flag for displaying a vector plot. More... | |
| void | SetVertexVisibility (bool flag) |
| Displays or hides a vertex. More... | |
| void | SetView (String &name) |
| Changes the view by specifying the viewpoint from the view list. More... | |
| void | SetViewByIndex (int index) |
| Changes the view by specifying the index in the view list. More... | |
| void | Shaded () |
| Switches to the shading display. | |
| void | ShowAll () |
| Shows all regions. | |
| void | ShowAllAirRegions () |
| Shows all air regions. | |
| void | ShowAllShells () |
| Displays all shells. More... | |
| void | ShowMesh () |
| Displays the mesh model. | |
| void | ShowMeshGeometry () |
| Displays the mesh model outline. | |
| void | ShowModel () |
| Displays a solid/region model. | |
| void | ShowMorphing () |
| Displays morphing. | |
| void | TileSubWindows () |
| Displays windows side by side. | |
| void | UpdateView () |
| Redraws the graphics window. More... | |
| double | VectorMaxValue () |
| Returns the maximum value of vector displayed in the window. More... | |
| double | VectorMinValue () |
| Returns the minimum value of vector displayed in the window. More... | |
| void | Wireframe () |
| Switches to the wireframe display. | |
| void | Xy () |
| Rotates the model to display the XY plane. | |
| void | Xz () |
| Rotates the model to display the XZ plane. | |
| void | Yx () |
| Rotates the model to display the YZ plane. | |
| void | Yz () |
| Rotates the model to display the YX plane. | |
| void | Zoom (double zoomfactor) |
| Controls the zoom of a camera. More... | |
| void | Zx () |
| Rotates the model to display the ZX plane. | |
| void | Zy () |
| Rotates the model to display the ZY plane. | |
ViewController class along with changing the pan, zoom, and orientation of the model display, this controls such things as the display status of analysis results.
It can be called from Application class.
.
Example of calling the class object:
The following coordinate system is used to explain some of the commands
| int ViewController::ActiveSubWindowIndex | ( | ) |
Returns an index for the active window.
| bool ViewController::CaptureResultView | ( | String & | title, |
| String & | comment | ||
| ) |
Captures the result view.
| title | Title |
| comment | Comment |
| double ViewController::ContourMaxValue | ( | ) |
Returns the maximum value of contour displayed in the window.
| double ViewController::ContourMinValue | ( | ) |
Returns the minimum value of contour displayed in the window.
| int ViewController::CreateView | ( | String & | name | ) |
Creates a viewpoint to add to the view list.
| name | Name of the view point |
| void ViewController::DeleteView | ( | String & | name | ) |
Deletes the viewpoint specified by the name from the view list.
| name | Name of the view point |
| void ViewController::DeleteViewByIndex | ( | int | index | ) |
Deletes the viewpoint specified by the index from the view list.
| index | Viewpoint index |
| void ViewController::ExportViewpoints | ( | String & | filename, |
| String array & | viewpoints | ||
| ) |
Exports viewpoints to a file.
| filename | File path |
| viewpoints | List of viewpoint names for exporting |
| bool ViewController::GetCompositeView | ( | ) |
Returns True as the return value if the composite result is displayed.
| bool ViewController::GetContourLabelView | ( | ) |
Returns True as the return value if a contour max position label is displayed.
| bool ViewController::GetContourView | ( | ) |
Returns True as the return value if a contour plot is displayed.
| int ViewController::GetCurrentCase | ( | ) |
Returns the current case ID.
The currentCase is numbered from 1.
| bool ViewController::GetCutPlanesOutLinesView | ( | ) |
Returns True as the return value when [Show Only Cut Faces] is enabled.
| bool ViewController::GetFluxLineView | ( | ) |
Returns True as the return value if a flux line plot is displayed.
| bool ViewController::GetModelCopyView | ( | ) |
Returns True as the return value if a model copy is displayed.
| bool ViewController::GetOnlyCutFacesView | ( | ) |
Returns True as the return value when [Show Model in Front/Behind Plane] is active.
| bool ViewController::GetOriginalModelView | ( | ) |
Returns True as the return value if a original model is displayed.
| double ViewController::GetPhase | ( | ) |
Returns the current phase as a real number.
| bool ViewController::GetScaledDisplacementView | ( | ) |
Returns True as the return value if the scale is applied to the result display.
| int ViewController::GetStep | ( | ) |
Returns the current step number as an integer.
| bool ViewController::GetVectorView | ( | ) |
Returns True as the return value if a vector plot is displayed.
| void ViewController::ImportViewpoints | ( | String & | filename | ) |
Imports viewpoints from files.
| filename | File path |
| bool ViewController::IsSingleton | ( | ) |
Since this is an internal function, it is not officially supported.
| bool ViewController::IsValid | ( | ) |
Returns True if an object is valid.
| void ViewController::Pan | ( | double | deltax, |
| double | deltay | ||
| ) |
Controls the panning of a camera.
| deltax | Horizontal displacement |
| deltay | Vertical displacement |
| void ViewController::Roll | ( | double | degree | ) |
Rotates the viewpoint of the model on the fixed plane.
| degree | Angle |
| void ViewController::Rotate | ( | double | degree_x, |
| double | degree_y | ||
| ) |
Rotates the viewpoint by the specified angle.
| degree_x | Angle from the X-axis |
| degree_y | Angle from the Y-axis |
| void ViewController::RotateTo | ( | double | degree_x, |
| double | degree_y, | ||
| double | degree_z | ||
| ) |
Controls the rotation of a camera.
| degree_x | X angle |
| degree_y | Y angle |
| degree_z | Z angle |
| void ViewController::SelectByCirclePixelPos | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | type | ||
| ) |
Uses the pixel coordinate system to make a circular selection.
| x1 | First point of the circle (center of the circle) - X-axis |
| y1 | First point of the circle (center of the circle) - Y-axis |
| x2 | Second point of the circle (a point on the circumference) - X-axis |
| y2 | Second point of the circle (a point on the circumference) - Y-axis |
| type | 0x01:Shift
0x02:Control
0x03:Shift&Control
|
The JMAG-Designer window must be dislayed prior to using these commands.
These are keyboard commands.
| void ViewController::SelectByCircleWorldPos | ( | double | x1, |
| double | y1, | ||
| double | z1, | ||
| double | x2, | ||
| double | y2, | ||
| double | z2, | ||
| int | type | ||
| ) |
Uses the world coordinate system to make a circular selection.
| x1 | First point of the circle (center of the circle) - X-axis |
| y1 | First point of the circle (center of the circle) - Y-axis |
| z1 | First point of the sphere (center of the sphere) - Z-axis |
| x2 | Second point of the circle (a point on the circumference) - X-axis |
| y2 | Second point of the circle (a point on the circumference) - Y-axis |
| z2 | Second point of the sphere (a point on the spherical surface) - Z-axis |
| type | 0x01:Shift
0x02:Control
0x03:Shift&Control
|
The JMAG-Designer window must be dislayed prior to using these commands.
These are keyboard commands.
| void ViewController::SelectByCylinder | ( | Cylinder * | cylinder, |
| bool | visible | ||
| ) |
Selects object included in an area by specifying an area in a circle or cylinder.
| cylinder | Definition for cylinder area |
| visible | 0 : Selects hidden targets
1 : Selects only visible targets
|
| void ViewController::SelectByID | ( | int | index | ) |
Selects object by specifying an ID.
| index | ID |
| void ViewController::SelectByPolylinePixelPos | ( | String array & | pos, |
| int | type | ||
| ) |
Uses the pixel coordinate system to make a polygonal selection.
| pos | Polygonal vertex coordinate (x,y) table (2 row arrangement) |
| type | 0x01:Shift
0x02:Control
0x03:Shift&Control
|
The JMAG-Designer window must be dislayed prior to using these commands.
These are keyboard commands.
| void ViewController::SelectByPolylineWorldPos | ( | String array & | pos, |
| int | type | ||
| ) |
Uses geometry obtained from converting a polyhedron in a world coordinate system to a pixel coordinate system to select a range.
| pos | |
| type | 0x01:Shift
0x02:Control
0x03:Shift&Control
|
The JMAG-Designer window must be dislayed prior to using these commands.
These are keyboard commands.
| void ViewController::SelectByPosition | ( | double | x, |
| double | y, | ||
| double | z, | ||
| bool | visible | ||
| ) |
Selects object in position by specifying coordinates.
| x | X-coordinate |
| y | Y-coordinate |
| z | Z-coordinate |
| visible | 0 : Selects hidden targets
1 : Selects only visible targets
|
Selects object included in an area by specifying a rectangle or parallelepiped.
| lower | Point sequence coordinate of first point (x, y, z) |
| upper | Point sequence coordinate of second point (x, y, z) |
| visible | 0 : Selects hidden targets
1 : Selects only visible targets
|
| void ViewController::SelectByRectanglePixelPos | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | type | ||
| ) |
Uses the pixel coordinate system to make a rectangular selection.
| x1 | First point of the rectangular selection - X-coordinate |
| y1 | First point of the rectangular selection - Y-coordinate |
| x2 | Second point of rectangular selection (The diagonal line of the first point) - X-coordinate |
| y2 | Second point of rectangular selection (The diagonal line of the first point) - Y-coordinate |
| type | 0x01:Shift
0x02:Control
0x03:Shift&Control
|
The JMAG-Designer window must be dislayed prior to using these commands.
These are keyboard commands.
| void ViewController::SelectByRectangleWorldPos | ( | double | x1, |
| double | y1, | ||
| double | z1, | ||
| double | x2, | ||
| double | y2, | ||
| double | z2, | ||
| int | type | ||
| ) |
Uses geometry obtained from converting a cuboid in a world coordinate system to a pixel coordinate system to select a range.
| x1 | First point of the cuboid - X-coordinate |
| y1 | First point of the cuboid - Y-coordinate |
| z1 | First point of the cuboid - Z-coordinate |
| y2 | Second point of the cuboid - y-coordinate |
| x2 | Second point of the cuboid - X-coordinate |
| z2 | Second point of the cuboid - Z-coordinate |
| type | 0x01:Shift
0x02:Control
0x03:Shift&Control
|
The JMAG-Designer window must be dislayed prior to using these commands.
These are keyboard commands.
| void ViewController::SelectPixelPos | ( | int | x, |
| int | y, | ||
| int | type | ||
| ) |
Selects object in position by specifying pixel coordinates.
| x | X-coordinate of selection |
| y | Y-coordinate of selection |
| z | Z-coordinate of selection |
| type | 0x01:Shift
0x02:Control
0x03:Shift&Control
|
The JMAG-Designer window must be dislayed prior to using these commands.
These are keyboard commands.
| void ViewController::SelectWorldPos | ( | double | x, |
| double | y, | ||
| double | z, | ||
| int | type | ||
| ) |
Selects object in position by specifying world coordinates.
| x | X-coordinate of selection |
| y | Y-coordinate of selection |
| z | Z-coordinate of selection |
| type | 0x01:Shift
0x02:Control
0x03:Shift&Control
|
The JMAG-Designer window must be dislayed prior to using these commands.
These are keyboard commands.
| void ViewController::SetActiveSubWindow | ( | int | index | ) |
Switches another window to active.
| index | Index for the created window (in order of old to new windows) |
| void ViewController::SetActiveSubWindowSize | ( | int | width, |
| int | height | ||
| ) |
Specifies window size.
| width | Window width |
| height | Window height |
| void ViewController::SetAllView | ( | String & | name | ) |
Changes the view of all windows by selecting the viewpoint from the view list.
| name | Name of the viewpoint |
| void ViewController::SetAllViewByIndex | ( | int | index | ) |
Changes the view of all windows by specifying view with index in the view list.
| index | Viewpoint index |
| void ViewController::SetCamera | ( | double | pos_x, |
| double | pos_y, | ||
| double | pos_z, | ||
| double | tar_x, | ||
| double | tar_y, | ||
| double | tar_z, | ||
| double | up_x, | ||
| double | up_y, | ||
| double | up_z, | ||
| double | width, | ||
| double | height | ||
| ) |
Specifies the camera position.
| pos_x | Camera position - X-coordinate |
| pos_y | Camera position - Y-coordinate |
| pos_z | Camera position - Z-coordinate |
| tar_x | Image capture - X-coordinate |
| tar_y | Image capture - Y-coordinate |
| tar_z | Image capture - Z-coordinate |
| up_x | Upper direction of image capture - X-component |
| up_y | Upper direction of image capture - Y-component |
| up_z | Upper direction of image capture - Z-component |
| width | Image capture width |
| height | Image capture height |
| void ViewController::SetCompositeView | ( | bool | flag | ) |
Specifies the flag for displaying the composite result.
| flag | True=1 : Displays composite result
False=0 : Hides the composite result
|
| void ViewController::SetContourLabelView | ( | bool | flag | ) |
Specifies the flag for displaying a contour max position label.
| flag | True=1 : Displays a label
False=0 : Hides a label
|
| void ViewController::SetContourView | ( | bool | flag | ) |
Specifies the flag for displaying a contour plot.
| flag | True=1 : Displays a contour plot
False=0 : Hides a contour plot
|
| void ViewController::SetCurrentCase | ( | int | currentCase | ) |
Specifies the current case ID.
| currentCase | Current case ID |
The currentCase is numbered from 1.
| void ViewController::SetCutPlanesOutLinesView | ( | bool | flag | ) |
Specifies a flag for enabling [Show Cut Plane Outlines].
| flag | True=1 : Displays cut geometry outline
False=0 : Hides cut geometry outline
|
| void ViewController::SetExtendedSelection | ( | bool | flag | ) |
Switches to the surface selection mode.
| flag | True=1 : Starts surface selection mode
False=0 : Exits surface selection mode
|
| void ViewController::SetFluxLineView | ( | bool | flag | ) |
Specifies the flag for displaying a flux line plot.
| flag | True=1 : Displays flux lines
False=0 : Hides flux lines
|
| void ViewController::SetModelCopyView | ( | bool | flag | ) |
Specifies the flag for displaying a model copy.
| flag | True=1 : Displays a model copy
False=0 : Hides a model copy
|
| void ViewController::SetOnlyCutFacesView | ( | bool | flag | ) |
| void ViewController::SetOriginalModelView | ( | bool | flag | ) |
Specifies a flag for displaying the original model.
| void ViewController::SetPhase | ( | double | phase | ) |
Specifies the current phase.
| phase | Phase |
| void ViewController::SetScaledDisplacementView | ( | bool | flag | ) |
Specifies a flag for applying the scale to the result display.
| flag | True=1 : Applies the scaling factor
False=0 : Does not apply the scaling factor
|
| void ViewController::SetSightThrough | ( | bool | flag | ) |
Switches to the sight through mode.
| flag | True=1 : Starts sight through mode
False=0 : Exits sight through mode
|
| void ViewController::SetStep | ( | int | step | ) |
Specifies the current step number.
| step | Step number |
| void ViewController::SetVectorView | ( | bool | flag | ) |
Specifies the flag for displaying a vector plot.
| flag | True=1 : Displays a vector plot
False=0 : Hides a vector plot
|
| void ViewController::SetVertexVisibility | ( | bool | flag | ) |
Displays or hides a vertex.
| flag | True=1 : Highlights vertices
False=0 : Does not highlight vertices
|
| void ViewController::SetView | ( | String & | name | ) |
Changes the view by specifying the viewpoint from the view list.
| name | Name of the viewpoint |
| void ViewController::SetViewByIndex | ( | int | index | ) |
Changes the view by specifying the index in the view list.
| index | Viewpoint index |
| void ViewController::ShowAllShells | ( | ) |
Displays all shells.
Shows all beams for 2D models.
| void ViewController::UpdateView | ( | ) |
Redraws the graphics window.
Changes are not reflected in the graphics window until a script with a step or a phase is modified and all process for scripts have ended.
The model in the graphics window is redrawn immediately when running this command.
| double ViewController::VectorMaxValue | ( | ) |
Returns the maximum value of vector displayed in the window.
| double ViewController::VectorMinValue | ( | ) |
Returns the minimum value of vector displayed in the window.
| void ViewController::Zoom | ( | double | zoomfactor | ) |
Controls the zoom of a camera.
| zoomfactor | Magnification |