V-ARTContributions
pnmexporter.h
Go to the documentation of this file.
1 
5 #ifndef VART_PNMEXPORTER_H
6 #define VART_PNMEXPORTER_H
7 
9 
10 namespace VART {
21  {
22  public:
23  // PUBLIC STATIC METHODS
24  // PUBLIC METHODS
25  PNMExporter();
26  virtual ~PNMExporter();
28  void SetBufferSize(int columns, int lines);
33  virtual void OnDraw();
34  protected:
35  // PROTECTED STATIC METHODS
36  // PROTECTED METHODS
37  // PROTECTED STATIC ATTRIBUTES
38  // PROTECTED ATTRIBUTES
40  unsigned int* dataPtr;
44  int numLines;
45  }; // end class declaration
46 } // end namespace
47 
48 #endif
virtual void OnDraw()
Reads frame buffer and writes to file.
Definition: pnmexporter.cpp:34
unsigned int * dataPtr
buffer for image data
Definition: pnmexporter.h:40
int numLines
number of lines in buffer
Definition: pnmexporter.h:44
Header file for V-ART class "ViewerGlutOGL".
Exports the frame buffer to a PNM file.
Definition: pnmexporter.h:20
void SetBufferSize(int columns, int lines)
Changes the buffer size.
Definition: pnmexporter.cpp:25
virtual ~PNMExporter()
Definition: pnmexporter.cpp:19
int numColumns
number of columns in buffer
Definition: pnmexporter.h:42