CLASSIFIER : GRCube
uid: class-GRCUBE-CVEViewer-MetaModel@g-scop.grenoble-inp.fr
About
Abstract
A GRCube is a graphic node visualizing a simple parallelepiped
We can manage which axis and rotations are visible and selectable. The default label can be renamed.
Red stands for X axis, Green for Y axis and Blue for Z axis.
To create a GRCube just call
frame=cve.viewer.GRCube(DX,DY,DZ)
where :
- DX: size along X
- DY: size along Y
- DZ: size along Z
Class Diagram
Inherits
- GRNODE
Attributes table
attribute | type | cardinality |
---|---|---|
Dx | vreal | [1,1] |
Dy | vreal | [1,1] |
Dz | vreal | [1,1] |
Methods
-
set_dx(self,..) : set dimension along x axis in local coordinate :param self: the cube object :param dx: size along x
-
set_dy(self,..) :
set dimension along y axis in local coordinate :param self: the cube object :param dy : size along y
-
set_dz(self,..) :
set dimension along z axis in local coordinate :param self: the cube object :param dx : size along z
-
get_dx(self,..) :
get x length :param self: the cube object :return: size along x
-
get_dy(self,..) :
get y length :param self: the cube object :return: size along y
-
get_dz(self,..) :
get z length :param self: the cube object :return: size along z