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>

Inheritance diagram for HCtrlView:

HBaseView

List of all members.

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:
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


Member Function Documentation

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

Parameters:
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

Parameters:
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

Parameters:
num progress (in percent)

void HCtrlView::DoSmoothTransition ( bool  prepare  ) 

Perform smooth transition

Parameters:
prepare true = retrieve current camera parameters, false = perform transition

bool HCtrlView::SceneDetached (  )  [inline]

Returns:
true = scene is detached, false = scene is not detached

void HCtrlView::FlushScene (  ) 

Overloaded Flush Scene

void HCtrlView::SetHasCamera ( bool  hascamera  )  [inline]

Returns:
true = operator has started, false = operator has not started
Set has camera flag for HSF loading
Parameters:
hascamera true = hsf file has initial camera setting, false = hsf file has no initial camera setting

bool HCtrlView::GetHasCamera (  )  [inline]

Returns:
true = hsf file has initial camera setting, false = hsf file has no initial camera setting

bool HCtrlView::OperatorStarted (  ) 

Returns:
true = ocurrent perator has been started (e.g. user is currently orbiting)


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