cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsOSGImage.h
Go to the documentation of this file.
1 /*
2 
3  Author(s): Simon Leonard
4  Created on: Dec 02 2009
5 
6  (C) Copyright 2009 Johns Hopkins University (JHU), All Rights
7  Reserved.
8 
9 --- begin cisst license - do not edit ---
10 
11 This software is provided "as is" under an open source license, with
12 no warranty. The complete license can be found in license.txt and
13 http://www.cisst.org/cisst/license.txt.
14 
15 --- end cisst license ---
16 */
17 
18 
19 #ifndef _mtsOSGImage_h
20 #define _mtsOSGImage_h
21 
24 
27 
29 
30  private:
31 
33  mtsInterfaceRequired* input;
34  mtsFunctionRead GetImage;
35 
36  // Derive osaOSGImage and overload UpdateImate
37  class Image : public osaOSGImage{
38  protected:
39  virtual void UpdateImage();
40  public:
41  mtsOSGImage* mtsImage;
42  Image( float x, float y, float width, float height, osaOSGWorld* world );
43  Image( float x, float y, float width, float height, osaOSGHUD* hud );
44  ~Image(){}
45  };
46 
47  osg::ref_ptr<mtsOSGImage::Image> image;
48  void UpdateImage();
49 
50  public:
51 
52  // Main constructor
53  mtsOSGImage( const std::string& name,
54  float x, float y,
55  float width, float height,
56  osaOSGWorld* world );
58 
59  void Startup();
60  void Run();
61  void Cleanup();
62 
63 };
64 
65 #endif
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Definition: mtsFunctionRead.h:37
Declaration of mtsInterfaceRequired.
Definition: mtsInterfaceRequired.h:85
Defines a continuously executing task.
virtual void Startup(void)
Definition: mtsComponent.h:262
Definition: osaOSGImage.h:36
Definition: osaOSGWorld.h:24
Definition: osaOSGHUD.h:15
~mtsOSGImage()
Definition: mtsOSGImage.h:57
virtual void Run(void)=0
Definition: mtsTaskContinuous.h:77
Definition: mtsOSGImage.h:28
virtual void Cleanup(void)
Definition: mtsComponent.h:267