#include <HCtrlView.h>
Public Member Functions | |
HCtrlView (HBaseModel *model) | |
HCtrlView (HBaseModel *model, const char *alias, const char *driver_type, const char *instance_name, void *window_handle, void *colormap) | |
void | Init (void) |
void | CreateViewHeirarchy (void) |
void | ReconfigureView (HWND hWnd, HPALETTE hPalette, char *drivertype) |
void | DeleteDriver (void) |
void | FitWorld () |
void | FlushFromMessage (const char *in_data, unsigned int data_length) |
void | DetachScene () |
void | AttachScene (void *h, char *drivertype) |
void | GetWindowSize (int &xmax, int &ymax) |
void | CreateProgressWindow () |
void | DeleteProgressWindow () |
void | SetProgressWindow (int num) |
void | DoSmoothTransition (bool prepare) |
bool | SceneDetached () |
void | FlushScene () |
void | SetHasCamera (bool hascamera) |
bool | GetHasCamera () |
bool | OperatorStarted () |
HCtrlView provides additional methods to support ActiveX behaviors. The HOOPS/MVO HBaseView class that is used in conjunction with HOOPS/ActiveX should be based on HCtrlView.
HCtrlView::HCtrlView | ( | HBaseModel * | model | ) |
Constructor
model | Pointer to HBaseMode object |
HCtrlView::HCtrlView | ( | HBaseModel * | model, | |
const char * | alias, | |||
const char * | driver_type, | |||
const char * | instance_name, | |||
void * | window_handle, | |||
void * | colormap | |||
) |
Constructor
void HCtrlView::Init | ( | void | ) | [virtual] |
General Initialization
Reimplemented from HBaseView.
void HCtrlView::CreateViewHeirarchy | ( | void | ) |
Creates initial segment hierachy
void HCtrlView::ReconfigureView | ( | HWND | hWnd, | |
HPALETTE | hPalette, | |||
char * | drivertype | |||
) |
Reconfigures existing view
hWnd | Window Handle | |
hPalette | Window Palette | |
drivertype | Type of Driver |
void HCtrlView::DeleteDriver | ( | void | ) |
Delete Driver Segment
void HCtrlView::FitWorld | ( | ) |
Smooth Transition Fit World
void HCtrlView::FlushFromMessage | ( | const char * | in_data, | |
unsigned int | data_length | |||
) | [virtual] |
Overloaded FlushFromMessage (deletes note geometry)
Reimplemented from HBaseView.
void HCtrlView::DetachScene | ( | ) |
Bind View to null driver
void HCtrlView::AttachScene | ( | void * | h, | |
char * | drivertype | |||
) |
Rebind view
void HCtrlView::GetWindowSize | ( | int & | xmax, | |
int & | ymax | |||
) |
Get screen extents of current view
xmax | extents in x direction | |
ymax | extents in y direction |
void HCtrlView::CreateProgressWindow | ( | ) |
Initialize percentage loading progress display
void HCtrlView::DeleteProgressWindow | ( | ) |
Clean Up Progress Window
void HCtrlView::SetProgressWindow | ( | int | num | ) |
Set progress percentage
num | progress (in percent) |
void HCtrlView::DoSmoothTransition | ( | bool | prepare | ) |
Perform smooth transition
prepare | true = retrieve current camera parameters, false = perform transition |
bool HCtrlView::SceneDetached | ( | ) | [inline] |
void HCtrlView::FlushScene | ( | ) |
Overloaded Flush Scene
void HCtrlView::SetHasCamera | ( | bool | hascamera | ) | [inline] |
hascamera | true = hsf file has initial camera setting, false = hsf file has no initial camera setting |
bool HCtrlView::GetHasCamera | ( | ) | [inline] |
bool HCtrlView::OperatorStarted | ( | ) |