Alphabetical Class Index   Compound Members   File List  

HCtrlView Class Reference

A HOOPS/ActiveX specific implmentation of the HOOPS/MVO HBaseView class. More...

#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 ()
 

Detailed Description

A HOOPS/ActiveX specific implmentation of the HOOPS/MVO HBaseView class.

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.

Constructor & Destructor Documentation

HCtrlView::HCtrlView ( HBaseModel model)

Constructor

Parameters
modelPointer to HBaseMode object
HCtrlView::HCtrlView ( HBaseModel model,
const char *  alias,
const char *  driver_type,
const char *  instance_name,
void *  window_handle,
void *  colormap 
)

Constructor

Member Function Documentation

void HCtrlView::AttachScene ( void *  h,
char *  drivertype 
)

Rebind view

void HCtrlView::CreateProgressWindow ( )

Initialize percentage loading progress display

void HCtrlView::CreateViewHeirarchy ( void  )

Creates initial segment hierachy

void HCtrlView::DeleteDriver ( void  )

Delete Driver Segment

void HCtrlView::DeleteProgressWindow ( )

Clean Up Progress Window

void HCtrlView::DetachScene ( )

Bind View to null driver

void HCtrlView::DoSmoothTransition ( bool  prepare)

Perform smooth transition

Parameters
preparetrue = retrieve current camera parameters, false = perform transition
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::FlushScene ( )

Overloaded Flush Scene

bool HCtrlView::GetHasCamera ( )
inline
Returns
true = hsf file has initial camera setting, false = hsf file has no initial camera setting
void HCtrlView::GetWindowSize ( int &  xmax,
int &  ymax 
)

Get screen extents of current view

Parameters
xmaxextents in x direction
ymaxextents in y direction
void HCtrlView::Init ( void  )
virtual

General Initialization

Reimplemented from HBaseView.

bool HCtrlView::OperatorStarted ( )
Returns
true = ocurrent perator has been started (e.g. user is currently orbiting)
void HCtrlView::ReconfigureView ( HWND  hWnd,
HPALETTE  hPalette,
char *  drivertype 
)

Reconfigures existing view

Parameters
hWndWindow Handle
hPaletteWindow Palette
drivertypeType of Driver
bool HCtrlView::SceneDetached ( )
inline
Returns
true = scene is detached, false = scene is not detached
void HCtrlView::SetHasCamera ( bool  hascamera)
inline
Returns
true = operator has started, false = operator has not started

Set has camera flag for HSF loading

Parameters
hascameratrue = hsf file has initial camera setting, false = hsf file has no initial camera setting
void HCtrlView::SetProgressWindow ( int  num)

Set progress percentage

Parameters
numprogress (in percent)

The documentation for this class was generated from the following file: