Previous Next Up Title Contents Index Top Library

25.3. CONTROL FUNCTIONS

XgInitializeViewObject	(XgViewObject *viewObject)
This function initialize the object . She must be called before any others functions.

XgResetViewObject	(XgViewObject *viewObject)
This function compute a defaut view and displayn the object.

XgDisplayViewObject	(XgViewObject *viewObject)
This function display the object.

XgMoveViewObject	(XgViewObject *viewObject,
	int deltax, int deltay,
	int width_win, int height_win)
This function move (rotate) the object. The angle is compute with the difference between the previous cursor postion and new position (X axis and Y axis) and the size of the window. The coordinates are specify in DC space.

XgZoomViewObject	(XgViewObject *viewObject,
	int old_pos, int current_pos)
This function zoom the object. The new view plane is compute with the difference between the previous cursor postion and new position (X axis or Y axis). The coordinates are specify in DC space.

XgDisplayBoundingBox	(XgViewObject *viewObject)
This function display the bounding box of an CSS

XgPaneImage	(XgViewObject *viewObject, int dx, int dy)
This function pane an image (posted structure).

dx and dy are current cursos postion in DC space

XgDisplayImage	(XgViewObject *viewObject)
This function display all posted structure in the workstation ( redraw )

XgDisplayReference	(XgViewObject *viewObject)
This function display a little reference inthe left corner of the window.

XgGetParamViewObject	(XgViewObject *viewObject,
	XgViewParam *param,int *error)

This function get the current view parameter and return an error.

typedef struct _XgViewParam {

Ppoint3 observed_point;

Pvec3 head_slant;

Pvec3 eye_position;

Pproj_type projection_type;

Pfloat image_postion;

int reference_type;

} XgViewParam;

error : 	XgNO_ERROR
	XgERROR_OBJECT_NOT_INITIALIZED
	XgERROR_IN_GET_MAPPING
	XgERROR_IN_GET_ORIENTATION

XgSetParamViewObject	(XgViewObject *viewObject,
	XgViewParam *param,int *error)
This function set the current view to the current parameter and return an error.

XgZbufferCtrlViewObject	(XgViewObject *viewObject)
This fucntion set zbuffer according to the current flag zbuffer.

XgCopyViewObject	(XgViewObject *viewObjectDup,
	XgViewObject viewObject)
This function make a copy of the current view object.

NB : For more informations see

HLSview.c (a GPHIGS program)

MHLSview.c (a Motif program).

GViewer.c (a Motif program).

GetSetVw.c ( a Motif program)


Previous Next Up Title Contents Index Top Library