Public Member Functions | List of all members
GeomViewController Class Reference

GeomViewController Class
The commands in the GeomViewController class are described below.
. More...

Public Member Functions

void Fit ()
 Adjusts the size of the model to fit in the window.
 
void Hiddenline ()
 Hides a line. More...
 
void HideAllElement ()
 Hides all elements.
 
void HideSelectElement ()
 Hides selected elements or selected items elements.
 
void Iso ()
 Displays the model in the isometric view.
 
void Pan (double deltax, double deltay)
 Pans the display. 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 SelectAtBoxDlg (double min_x, double min_y, double min_z, double max_x, double max_y, double max_z, bool vis_item=true, int filter=0)
 Selects object by specifying two points from a parallelepiped or rectangle area. More...
 
void SelectAtCircleDlg (double center_x, double center_y, double center_z, double center_axis_x, double center_axis_y, double center_axis_z, double x_axis_x, double x_axis_y, double x_axis_z, double outer, double inner, double start, double end, bool is_height, double top, double bottom, bool vis_item=true, int filter=0)
 Specifies an area of circle (or sector, cylinder) and selects the objects included in that area. More...
 
void SelectAtCoordinateDlg (double x, double y, double z, bool vis_item=true, int filter=0)
 Specifies a coordinate and selects the target that exists in the position. More...
 
void SelectByCirclePixelPos (int x1, int y1, int x2, int y2, int type)
 Selects by circle using the pixel coordinate system. More...
 
void SelectByCircleWorldPos (double x1, double y1, double z1, double x2, double y2, double z2, int type)
 Uses geometry obtained from converting a sphere in a world coordinate system to a pixel coordinate system to select a range. More...
 
void SelectByPolylinePixelPos (String array &pos, int type)
 Selects a polygon region using the pixel coordinate system. More...
 
void SelectByPolylineWorldPos (String array &pos, int type)
 Selects an area using a geometry obtained from the projection of a polyhedron in the world coordinate system onto the pixel coordinate system. More...
 
void SelectByRectanglePixelPos (int x1, int y1, int x2, int y2, int type)
 Selects a rectangle by using the pixel coordinate system. More...
 
void SelectByRectangleWorldPos (double x1, double y1, double z1, double x2, double y2, double z2, int type)
 Selects an area using a geometry obtained from a parallelepiped based on the world coordinate system that is projected onto the pixel coordinate system. More...
 
void SelectPixelPos (int x, int y, int type)
 Selects a coordinate using the pixel coordinate system. More...
 
void SelectWorldPos (double x, double y, double z, int type)
 Selects a position using a value obtained from a coordinate value based on the world coordinate system that is projected onto the pixel coordinate system. 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 camera position. More...
 
void SetDisplayTarget (Variant var)
 Specifies the display target. More...
 
void SetExtendedSelection (bool status)
 Specifies the surface selection. More...
 
void SetSelectionFilter (Variant var)
 Specifies the selection filter. More...
 
void SetSelectionType (Variant var)
 Specifies the selection type. More...
 
void SetSightThrough (bool status)
 Specifies the sight through. More...
 
void SetViewWindowSize (int width, int height)
 Specifies the size of active window. More...
 
void Shaded ()
 Displays the model in the shading view. More...
 
void ShowAllElement ()
 Show all elements.
 
void ShowOnlySelectElement ()
 Shows only selected elements or selected items elements.
 
void Wireframe ()
 Displays the model in the wireframe view. More...
 
void Xy ()
 Displays the model viewed from the XY plane.
 
void Xz ()
 Displays the model viewed from the XZ plane.
 
void Yx ()
 Displays the model viewed from the YX plane.
 
void Yz ()
 Displays the model viewed from the YZ plane.
 
void Zoom (double zoomfactor)
 Zooms in and out the model. More...
 
void Zx ()
 Displays the model viewed from the ZX plane.
 
void Zy ()
 Displays the model viewed from the ZY plane.
 

Detailed Description

GeomViewController Class
The commands in the GeomViewController class are described below.
.

The GeomViewController class includes the commands for the following operation.

Modifies the display size of the assembly

Member Function Documentation

void GeomViewController::Hiddenline ( )

Hides a line.

GeomViewerController_Hiddenline001.gif
void GeomViewController::Pan ( double  deltax,
double  deltay 
)

Pans the display.

Parameters
deltaxDisplacement in the horizontal direction
deltayDisplacement in the vertical direction
void GeomViewController::Roll ( double  degree)

Rotates the viewpoint of the model on the fixed plane.

Parameters
degreeAngle
void GeomViewController::Rotate ( double  degree_x,
double  degree_y 
)

Rotates the viewpoint by the specified angle.

Parameters
degree_xAngle from the X-axis
degree_yAngle from the Y-axis
void GeomViewController::SelectAtBoxDlg ( double  min_x,
double  min_y,
double  min_z,
double  max_x,
double  max_y,
double  max_z,
bool  vis_item = true,
int  filter = 0 
)

Selects object by specifying two points from a parallelepiped or rectangle area.

Parameters
min_xX-coordinate of first point in a rectangle selection
min_yY-coordinate of first point in a rectangle selection
min_zZ-coordinate of first point in a rectangle selection
max_xX-coordinate of second point in a rectangle selection
max_yY-coordinate of second point in a rectangle selection
max_zZ-coordinate of second point in a rectangle selection
vis_item
True=on : Select only visible targets
False=off : Select visible or non-visible targets
filter
Type of geometry to be selected
NOFILTER = 0 : Do not use filter (selects everything in the position) *Default
VERTEX = 1 : Point
EDGE = 2 : Edge, Reference line
FACE = 4 : Face
LUMP = 8 : Part
REGION_VERTEX = 16 : Region vertex
REGION_EDGE = 32 : Region edge
REGION = 64 : Region
PLANE = 128 : Reference Plane
POINT = 256 : Reference point

The selected entities need to be located in the Geometry Editor graphics window.
When a selected entity is not located in the graphics window, use the 'Fit' in the GeomViewController class to modify the position of the selected entity so that it is located in the graphics window.

void GeomViewController::SelectAtCircleDlg ( double  center_x,
double  center_y,
double  center_z,
double  center_axis_x,
double  center_axis_y,
double  center_axis_z,
double  x_axis_x,
double  x_axis_y,
double  x_axis_z,
double  outer,
double  inner,
double  start,
double  end,
bool  is_height,
double  top,
double  bottom,
bool  vis_item = true,
int  filter = 0 
)

Specifies an area of circle (or sector, cylinder) and selects the objects included in that area.

Parameters
center_xX-coordinate of center point
center_yY-coordinate of center point
center_zZ-coordinate of center point
center_axis_xX-component of center axis
center_axis_yY-component of center axis
center_axis_zZ-component of center axis
x_axis_xX-component of x-axis
x_axis_yY-component of x-axis
x_axis_zZ-component of x-axis
outerExternal radius
innerInternal radius
startStart angle
endEnd angle
is_height
True=on : Specify height
False=off : Do not specify height
topTop
bottomBottom
vis_item
True=on : Select only visible targets
False=off : Select visible or non-visible targets
filter
Type of geometry to be selected
NOFILTER = 0 : Do not use filter (selects everything in the position) *Default
VERTEX = 1 : Point
EDGE = 2 : Edge, Reference line
FACE = 4 : Face
LUMP = 8 : Part
REGION_VERTEX = 16 : Region vertex
REGION_EDGE = 32 : Region edge
REGION = 64 : Region
PLANE = 128 : Reference Plane
POINT = 256 : Reference point

The selected entities need to be located in the Geometry Editor graphics window.
When a selected entity is not located in the graphics window, use the 'Fit' in the GeomViewController class to modify the position of the selected entity so that it is located in the graphics window.

void GeomViewController::SelectAtCoordinateDlg ( double  x,
double  y,
double  z,
bool  vis_item = true,
int  filter = 0 
)

Specifies a coordinate and selects the target that exists in the position.

Parameters
xX-coordinate of target
yY-coordinate of target
zZ-coordinate of target
vis_item
True=on : Select only visible targets
False=off : Select visible or non-visible targets
filter
Type of geometry to be selected
NOFILTER = 0 : Do not use filter (selects everything in the position) *Default
VERTEX = 1 : Point
EDGE = 2 : Edge, Reference line
FACE = 4 : Face
LUMP = 8 : Part
REGION_VERTEX = 16 : Region vertex
REGION_EDGE = 32 : Region edge
REGION = 64 : Region
PLANE = 128 : Reference Plane
POINT = 256 : Reference point

The filter setting is valid when the selected target is a geometry.
A constant sum can be specified in the filter (multiple geometry type can be selected).
This command is created based on the [Select at Coordinate] dialog box where it is not equivalent as the filter function in the [Select at Coordinate] dialog box.
The selected entities need to be located in the Geometry Editor graphics window.
When a selected entity is not located in the graphics window, use the 'Fit' in the GeomViewController class to modify the position of the selected entity so that it is located in the graphics window.

void GeomViewController::SelectByCirclePixelPos ( int  x1,
int  y1,
int  x2,
int  y2,
int  type 
)

Selects by circle using the pixel coordinate system.

Parameters
x1X-coordinate of first point (center point of circle) in a circle.
y1Y-coordinate of first point (center point of circle) of a circle.
x2X-coordinate of second point (point on circle) of a circle
y2Y-coordinate of second point (point on circle) of a circle
type
0x01:Shift
0x02:Control
0x03:Shift&Control

The window for Geometry Editor needs to be displayed before running this command.
“Type” is one of the operations using the keyboard.

  • Multiple selections can be made by holding down the Shift key and selecting.
  • Selections that have already been made are cleared and selections that have not been made are selected by holding down the Ctrl key and selecting.
  • The same operations while holding down the Ctrl key and selecting occur as when holding down the Shift and Ctrl keys at the same time and selecting.
    The selected entities need to be located in the Geometry Editor graphics window.
    When a selected entity is not located in the graphics window, use the 'Fit' in the GeomViewController class to modify the position of the selected entity so that it is located in the graphics window. Specify the 'Fit' command in the GeomViewController class to modify the position, when the object is outside the display area of the work plane.
void GeomViewController::SelectByCircleWorldPos ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
int  type 
)

Uses geometry obtained from converting a sphere in a world coordinate system to a pixel coordinate system to select a range.

Parameters
x1X-coordinate of first point (center point of sphere) in a sphere
y1Y-coordinate of first point (center point of sphere) in a sphere
z1Z-coordinate of first point (center point of sphere) in a sphere
x2X-coordinate of second point (point on sphere) of a sphere
y2Y-coordinate of second point (point on sphere) of a sphere
z2Z-coordinate of second point (point on sphere) of a sphere
type
0x01:Shift
0x02:Control
0x03:Shift&Control

The window for Geometry Editor needs to be displayed before running this command.
“Type” is one of the operations using the keyboard.

  • Multiple selections can be made by holding down the Shift key and selecting.
  • Selections that have already been made are cleared and selections that have not been made are selected by holding down the Ctrl key and selecting.
  • The same operations while holding down the Ctrl key and selecting occur as when holding down the Shift and Ctrl keys at the same time and selecting.
    The selected entities need to be located in the Geometry Editor graphics window.
    When a selected entity is not located in the graphics window, use the 'Fit' in the GeomViewController class to modify the position of the selected entity so that it is located in the graphics window.
void GeomViewController::SelectByPolylinePixelPos ( String array &  pos,
int  type 
)

Selects a polygon region using the pixel coordinate system.

Parameters
posTable (array of 2 rows) of vertex coordinate for a polygon region (x, y)
type
0x01:Shift
0x02:Control
0x03:Shift&Control

The window for Geometry Editor needs to be displayed before running this command.
“Type” is one of the operations using the keyboard.

  • Multiple selections can be made by holding down the Shift key and selecting.
  • Selections that have already been made are cleared and selections that have not been made are selected by holding down the Ctrl key and selecting.
  • The same operations while holding down the Ctrl key and selecting occur as when holding down the Shift and Ctrl keys at the same time and selecting.
    The selected entities need to be located in the Geometry Editor graphics window.
    When a selected entity is not located in the graphics window, use the 'Fit' in the GeomViewController class to modify the position of the selected entity so that it is located in the graphics window.
void GeomViewController::SelectByPolylineWorldPos ( String array &  pos,
int  type 
)

Selects an area using a geometry obtained from the projection of a polyhedron in the world coordinate system onto the pixel coordinate system.

Parameters
posTable (array of 3 rows) of vertex coordinates (x, y, z) for a polygon
type
0x01:Shift
0x02:Control
0x03:Shift&Control

The window for Geometry Editor needs to be displayed before running this command.
“Type” is one of the operations using the keyboard.

  • Multiple selections can be made by holding down the Shift key and selecting.
  • Selections that have already been made are cleared and selections that have not been made are selected by holding down the Ctrl key and selecting.
  • The same operations while holding down the Ctrl key and selecting occur as when holding down the Shift and Ctrl keys at the same time and selecting.
    The selected entities need to be located in the Geometry Editor graphics window.
    When a selected entity is not located in the graphics window, use the 'Fit' in the GeomViewController class to modify the position of the selected entity so that it is located in the graphics window.
void GeomViewController::SelectByRectanglePixelPos ( int  x1,
int  y1,
int  x2,
int  y2,
int  type 
)

Selects a rectangle by using the pixel coordinate system.

Parameters
x1X-coordinate of first point in a rectangle selection
y1Y-coordinate of first point in a rectangle selection
x2X-coordinate of second point (diagonal corner of the first point) in a rectangle selection
y2Y-coordinate of second point (diagonal corner of the first point) in a rectangle selection
type
0x01:Shift
0x02:Control
0x03:Shift&Control

The window for Geometry Editor needs to be displayed before running this command.
“Type” is one of the operations using the keyboard.

  • Multiple selections can be made by holding down the Shift key and selecting.
  • Selections that have already been made are cleared and selections that have not been made are selected by holding down the Ctrl key and selecting.
  • The same operations while holding down the Ctrl key and selecting occur as when holding down the Shift and Ctrl keys at the same time and selecting.
    The selected entities need to be located in the Geometry Editor graphics window.
    When a selected entity is not located in the graphics window, use the 'Fit' in the GeomViewController class to modify the position of the selected entity so that it is located in the graphics window.
void GeomViewController::SelectByRectangleWorldPos ( double  x1,
double  y1,
double  z1,
double  x2,
double  y2,
double  z2,
int  type 
)

Selects an area using a geometry obtained from a parallelepiped based on the world coordinate system that is projected onto the pixel coordinate system.

Parameters
x1X-coordinate of first point in a parallelepiped
y1Y-coordinate of first point in a parallelepiped
z1Z-coordinate of first point in a parallelepiped
x2X-coordinate of second point in a parallelepiped
y2Y-coordinate of second point in a parallelepiped
z2Z-coordinate of second point in a parallelepiped
type
0x01:Shift
0x02:Control
0x03:Shift&Control

The window for Geometry Editor needs to be displayed before running this command.
“Type” is one of the operations using the keyboard.

  • Multiple selections can be made by holding down the Shift key and selecting.
  • Selections that have already been made are cleared and selections that have not been made are selected by holding down the Ctrl key and selecting.
  • The same operations while holding down the Ctrl key and selecting occur as when holding down the Shift and Ctrl keys at the same time and selecting.
    The selected entities need to be located in the Geometry Editor graphics window.
    When a selected entity is not located in the graphics window, use the 'Fit' in the GeomViewController class to modify the position of the selected entity so that it is located in the graphics window.
void GeomViewController::SelectPixelPos ( int  x,
int  y,
int  type 
)

Selects a coordinate using the pixel coordinate system.

Parameters
xX-coordinate of target
yY-coordinate of target
type
0x01:Shift
0x02:Control
0x03:Shift&Control

The window for Geometry Editor needs to be displayed before running this command.
“Type” is one of the operations using the keyboard.

  • Multiple selections can be made by holding down the Shift key and selecting.
  • Selections that have already been made are cleared and selections that have not been made are selected by holding down the Ctrl key and selecting.
  • The same operations while holding down the Ctrl key and selecting occur as when holding down the Shift and Ctrl keys at the same time and selecting.
    The selected entities need to be located in the Geometry Editor graphics window.
    When a selected entity is not located in the graphics window, use the 'Fit' in the GeomViewController class to modify the position of the selected entity so that it is located in the graphics window.
void GeomViewController::SelectWorldPos ( double  x,
double  y,
double  z,
int  type 
)

Selects a position using a value obtained from a coordinate value based on the world coordinate system that is projected onto the pixel coordinate system.

Parameters
xX-coordinate of target
yY-coordinate of target
zZ-coordinate of target
type
0x01:Shift
0x02:Control
0x03:Shift&Control

The window for Geometry Editor needs to be displayed before running this command.
“Type” is one of the operations using the keyboard.

  • Multiple selections can be made by holding down the Shift key and selecting.
  • Selections that have already been made are cleared and selections that have not been made are selected by holding down the Ctrl key and selecting.
  • The same operations while holding down the Ctrl key and selecting occur as when holding down the Shift and Ctrl keys at the same time and selecting.
    The selected entities need to be located in the Geometry Editor graphics window.
    When a selected entity is not located in the graphics window, use the 'Fit' in the GeomViewController class to modify the position of the selected entity so that it is located in the graphics window.
void GeomViewController::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 camera position.

Parameters
pos_xX-coordinate of camera position
pos_yY-coordinate of camera position
pos_zZ-coordinate of camera position
tar_xX-coordinate for shooting camera
tar_yY-coordinate for shooting camera
tar_zZ-coordinate for shooting camera
up_xX-component for upper direction of shooting area
up_yY-component for upper direction of shooting area
up_zZ-component for upper direction of shooting area
widthWidth for area of shooting camera
heightHeight for area of shooting camera
void GeomViewController::SetDisplayTarget ( Variant  var)

Specifies the display target.

Parameters
var
Solid : 0x01
Mesh : 0x02
MeshOutline : 0x06
SolidMesh : 0x03
void GeomViewController::SetExtendedSelection ( bool  status)

Specifies the surface selection.

Parameters
status
True : Surface selection is set to On
False : Surface selection is set to Off
void GeomViewController::SetSelectionFilter ( Variant  var)

Specifies the selection filter.

Parameters
var
0x03 = BasicGeometry : Basic geometry selection filter
0x04 = Constraint : Constraint selection filter
0x08 = Region : Region selection filter

A constant sum can be specified in the ‘var’ (multiple filter types can be selected).
Example : [Basic Geometry Select Filter] (3) and [Region Select Filter] (8) is enabled

Call geomAppView().SetSelectionFilter(11)
void GeomViewController::SetSelectionType ( Variant  var)

Specifies the selection type.

Parameters
var
Solid : 0
Element : 1
ElementFace : 2
ElementEdge : 3
Node : 4
MeshBlock : 5
void GeomViewController::SetSightThrough ( bool  status)

Specifies the sight through.

Parameters
status
True=on : Sight through is set to On
False=off : Sight through is set to Off
void GeomViewController::SetViewWindowSize ( int  width,
int  height 
)

Specifies the size of active window.

Parameters
widthwidth
heightheight

Open the Geometry Editor window before running this command.

void GeomViewController::Shaded ( )

Displays the model in the shading view.

For an example of shading view, see here.

void GeomViewController::Wireframe ( )

Displays the model in the wireframe view.

For an example of wireframe view, see here.

void GeomViewController::Zoom ( double  zoomfactor)

Zooms in and out the model.

Parameters
zoomfactorScaling factor