Alphabetical Class List   File List   Compound Members  

HCtrlView.h

00001 //
00002 // Copyright (c) 2000 by Tech Soft 3D, LLC.
00003 // The information contained herein is confidential and proprietary to
00004 // Tech Soft 3D, LLC., and considered a trade secret as defined under
00005 // civil and criminal statutes.  Tech Soft 3D shall pursue its civil
00006 // and criminal remedies in the event of unauthorized use or misappropriation
00007 // of its trade secrets.  Use of this information by anyone other than
00008 // authorized employees of Tech Soft 3D, LLC. is granted only under a
00009 // written non-disclosure agreement, expressly prescribing the scope and
00010 // manner of such use.
00011 //
00012 // $Header: /files/homes/master/cvs/hoops_master/docs_hoops/HoopsActiveX/HoopsATL/ref_manual/_h_ctrl_view_8h-source.html,v 1.2 2006-08-07 20:39:02 stage Exp $
00013 //
00014 
00015 #ifndef _HCTRLVIEW_H
00016 #define _HCTRLVIEW_H
00017 
00018 #include "HBaseView.h"
00019 #include "HUtilityShadow.h"
00020 
00021 
00022 typedef struct {unsigned char r, g, b;} RGB;
00023 
00024   
00025  
00026 
00028 
00032 class HCtrlView : public HBaseView
00033 {
00034 
00035 public:
00036         HCtrlView           (HBaseModel * model);
00037         HCtrlView(HBaseModel *model,
00038     const char *                alias,  
00039     const char *                driver_type,
00040         const char *            instance_name,
00041     void *              window_handle,
00042     void *              colormap);
00043  
00044         ~HCtrlView()
00045         {
00046         }
00047     void    Init                (void);
00048     void    CreateViewHeirarchy (void);
00049         void    ReconfigureView (HWND hWnd, HPALETTE hPalette);
00050     void    DeleteDriver        (void);
00051  
00052  
00053  
00054  
00057         void FitWorld();
00060         void FlushFromMessage(const char *in_data, unsigned int data_length);
00061 
00062 
00065         void DetachScene();
00068         void AttachScene(void *h);
00069 
00074         void GetWindowSize(int &xmax, int &ymax);
00077         void CreateProgressWindow();
00080         void DeleteProgressWindow();
00084         void SetProgressWindow(int num);
00085 
00089         void DoSmoothTransition(bool prepare);
00093         bool SceneDetached() { return m_bSceneDetached; }
00094  
00097         void FlushScene();
00105         void SetHasCamera(bool hascamera) { m_hasCamera = hascamera; };
00109         bool GetHasCamera() { return m_hasCamera;};
00110 
00111         bool OperatorStarted();
00115         void                    SetShadowMode(HShadowMode shadowMode);
00116 private:
00117         void    ComputeShadowPlane(void);
00118     void    DeleteRealDriver    (void);
00119     void    DeleteNullDriver    (void);
00120     bool    m_bRealDriver;
00121         bool m_bSceneDetached;
00122         HC_KEY m_progresskey;
00123         bool    m_bBoundingBox;
00124         bool    m_hasCamera;
00125         ShadowPlaneType m_shadowPlane;
00126 
00127 };
00128 
00129 
00130  
00131 
00132 
00133 
00134 
00135 
00136 
00137 #endif _HCTRLVIEW_H


Copyright © 2002 Tech Soft 3D