The "SliceO_Window class is used to describe the drawing windows use in sliceOmatic. At the present time, sliceOmatic support up to 4 windows.
int window_nb ;
SliceO_Window **Window_Pt = (SliceO_Window **) Fct_Variable_Value( "$WINDOW_PT", &window_nb ) ;
SliceO_Window Class
The SliceO_Window class contain:
Constructors
The constructor and destructor for the class
|
Public:
|
SliceO_Window
|
Class constructor.
|
|
~SliceO_Window
|
Class destructor.
|
Identification
Some methods to define the class instance. Some of these are derived from the parent (SliceO) class:
|
Private:
|
m_class_a (unsigned short)
|
The exact meaning of the content of "A" depend on the class:
|
SliceO_Window
|
The display mode of the window (MODE_ONE, MODE_ALL, MODE_3D)
|
|
|
Public:
|
Class_A_Get
|
Return the value of the "m_class_a" variable.
|
|
Class_A_Set
|
Set the value of the "m_class_a" variable.
|
|
Private:
|
m_class_b (unsigned short)
|
The exact meaning of content of "B" depend on the class:
|
SliceO_Window
|
Window's ID
|
|
|
Public:
|
Class_B_Get
|
Return the value of the "m_class_b" variable.
|
|
Class_B_Set
|
Set the value of the "m_class_b" variable.
|
And some are specific to the SliceO_Class class
|
Private:
|
m_display_mode (unsigned char)
|
This variable contain the mode flag. A window can be 2D (WINDOW_MODE_ALL or WINDOW_MODE_ONE) or 3D (WINDOW_MODE_3D).
|
|
Public:
|
Mode_Get
|
Set and Get the mode of the window.
|
|
Mode_Set
|
|
Private:
|
m_module (unsigned int)
|
When you open a "Mode", it is associated to the current window. Each window can therefor have a different associated mode.
|
|
Public:
|
Module_Get
|
Set and Get the Module associated with the window.
|
|
Module_Set
|
Flags
|
Public:
|
m_on_off
|
|
|
m_visible
|
|
|
m_flag_update_a
|
|
|
m_flag_update_b
|
|
|
m_flag_redraw
|
|
2D Information
|
Public:
|
m_color
|
|
|
box_box
|
|
|
box_inside
|
|
|
m_wind_border
|
|
|
m_wind_draw
|
|
Window Coord. Transformation
3D Information
|
Public:
|
m_3D_transfo
|
|
|
m_3D_modelview_clip
|
|
|
m_3D_projection_clip
|
|
|
m_3D_FOV
|
|
|
m_3D_camera
|
|
|
m_3D_up
|
|
|
m_3D_viewport_org
|
|
|
m_3D_viewport_dim
|
|
|
m_3D_scale
|
|
|
m_3D_center
|
|