cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
svlOSGImage.h
Go to the documentation of this file.
1 
2 #ifndef _svlOSGImage_h
3 #define _svlOSGImage_h
4 
9 
11 
13 
14  public:
15 
16  svlOSGImage();
17  svlOSGImage( float x, float y,
18  float width, float height,
19  osaOSGWorld* world );
20  svlOSGImage( float x, float y,
21  float width, float height,
22  osaOSGHUD* hud );
23  virtual ~svlOSGImage();
24 
25  void setNodeMask( osg::Node::NodeMask mask );
26 
27  protected:
28 
29  virtual int Initialize( svlSample* syncInput, svlSample*& syncOutput );
30  virtual int Process( svlProcInfo* procInfo,
31  svlSample* syncInput,
32  svlSample* &syncOutput );
33  virtual int Release();
34 
35  private:
36 
37  // Derive osaOSGImage and overload UpdateImate
38  class Image : public osaOSGImage{
39  protected:
40  virtual void UpdateImage();
41  public:
42  svlOSGImage* svlImage;
43  Image( float x, float y, float width, float height, osaOSGWorld* world );
44  Image( float x, float y, float width, float height, osaOSGHUD* hud );
45  ~Image();
46  };
47 
48  osg::ref_ptr<svlOSGImage::Image> image;
49  void UpdateImage();
50 
51 };
52 
54 
55 #endif
56 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
#define CMN_DECLARE_SERVICES_INSTANTIATION_EXPORT(className)
Definition: cmnClassRegisterMacros.h:209
Definition: svlFilterBase.h:39
void Initialize(void)
Definition: osaOSGImage.h:36
Definition: osaOSGWorld.h:24
Definition: osaOSGHUD.h:15
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
Definition: svlProcInfo.h:33
const int CMN_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:331
virtual int Release(void)
Definition: svlOSGImage.h:10
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76
virtual int Process(svlProcInfo *procInfo, svlSample *syncInput, svlSample *&syncOutput)=0
Definition: svlSample.h:31