TuttleOFX  1
tuttle::plugin::viewer Namespace Reference

Data Structures

struct  ImgProperties
struct  ViewerProcessParams
class  ViewerPlugin
 Viewer plugin. More...
class  ViewerProcess
 Viewer process. More...

Functions

void reshape (int width, int height)
void loadNewTexture (const ImgProperties &properties)
void loadNewTexture (const char *data, GLint internalFormat, size_t width, size_t height, GLenum format, GLenum type)
void reloadTexture ()
void loadAlphaTexture ()
void setTransfert (float red, float green, float blue, float alpha=1.f)
void displayChannelTexture (bool &channel, const float red, const float green, const float blue)
void showRedChannelTexture ()
void showGreenChannelTexture ()
void showBlueChannelTexture ()
void showAlphaChannelTexture ()
void display ()
void idle ()
void displayInformations ()
void displayHelp ()
void move (float x, float y)
void zoom (float factor)
void mapToImage (int x, int y, int &iX, int &iY)
void keyboard (unsigned char k, int x, int y)
void specialKeyboard (int k, int x, int y)
void mouse (int button, int state, int x, int y)
void motion (int x, int y)
void openGLWindow (const size_t &width, const size_t &height)
 mDeclarePluginFactory (ViewerPluginFactory,{},{})

Variables

char * argv [2] = { (char*)"", NULL }
int argc = 1
ImgProperties img
int windowID
int angle_cam = 60
int w_out
int h_out
float scale = 1.0
int xMinViewport
int yMinViewport
float factorZoom = 1.25
float currentZoom = 1.0
float x1Quad
float x2Quad
float y1Quad
float y2Quad
bool flip = false
bool flop = false
int x_mouse_ref
int y_mouse_ref
bool showRedChannel = false
bool showGreenChannel = false
bool showBlueChannel = false
bool showAlphaChannel = false
static const std::string kViewerHelp = "ESC, Return, Space : quit and continue process"
static const bool kSupportTiles = false

Function Documentation

void tuttle::plugin::viewer::display ( )

Definition at line 226 of file ViewerAlgorithm.hpp.

References x1Quad, x2Quad, y1Quad, and y2Quad.

Referenced by openGLWindow().

void tuttle::plugin::viewer::displayChannelTexture ( bool &  channel,
const float  red,
const float  green,
const float  blue 
)

Definition at line 171 of file ViewerAlgorithm.hpp.

References img, loadNewTexture(), and setTransfert().

Referenced by showBlueChannelTexture(), showGreenChannelTexture(), and showRedChannelTexture().

Here is the call graph for this function:

void tuttle::plugin::viewer::displayHelp ( )

Definition at line 289 of file ViewerAlgorithm.hpp.

References kViewerHelp.

Referenced by keyboard(), and specialKeyboard().

void tuttle::plugin::viewer::displayInformations ( )
void tuttle::plugin::viewer::idle ( )

Definition at line 267 of file ViewerAlgorithm.hpp.

Referenced by tuttle::plugin::viewer::ViewerPlugin::render().

void tuttle::plugin::viewer::keyboard ( unsigned char  k,
int  x,
int  y 
)

Definition at line 335 of file ViewerAlgorithm.hpp.

References displayHelp(), displayInformations(), flip, flop, showAlphaChannelTexture(), showBlueChannelTexture(), showGreenChannelTexture(), showRedChannelTexture(), and SPACEBAR.

Referenced by openGLWindow().

Here is the call graph for this function:

void tuttle::plugin::viewer::loadNewTexture ( const char *  data,
GLint  internalFormat,
size_t  width,
size_t  height,
GLenum  format,
GLenum  type 
)
void tuttle::plugin::viewer::mapToImage ( int  x,
int  y,
int &  iX,
int &  iY 
)
tuttle::plugin::viewer::mDeclarePluginFactory ( ViewerPluginFactory  )
void tuttle::plugin::viewer::motion ( int  x,
int  y 
)
void tuttle::plugin::viewer::move ( float  x,
float  y 
)

Definition at line 294 of file ViewerAlgorithm.hpp.

Referenced by motion(), and mouse().

void tuttle::plugin::viewer::openGLWindow ( const size_t &  width,
const size_t &  height 
)

Definition at line 520 of file ViewerAlgorithm.hpp.

References argv, display(), height, keyboard(), motion(), mouse(), reshape(), specialKeyboard(), and width.

Referenced by tuttle::plugin::viewer::ViewerPlugin::render().

Here is the call graph for this function:

void tuttle::plugin::viewer::reloadTexture ( )

Definition at line 132 of file ViewerAlgorithm.hpp.

References loadNewTexture().

Here is the call graph for this function:

void tuttle::plugin::viewer::reshape ( int  width,
int  height 
)

Definition at line 71 of file ViewerAlgorithm.hpp.

References height, w_out, and width.

Referenced by openGLWindow().

void tuttle::plugin::viewer::setTransfert ( float  red,
float  green,
float  blue,
float  alpha = 1.f 
)
void tuttle::plugin::viewer::showAlphaChannelTexture ( )

Definition at line 208 of file ViewerAlgorithm.hpp.

References loadAlphaTexture(), and setTransfert().

Referenced by keyboard().

Here is the call graph for this function:

void tuttle::plugin::viewer::showBlueChannelTexture ( )

Definition at line 203 of file ViewerAlgorithm.hpp.

References displayChannelTexture().

Referenced by keyboard().

Here is the call graph for this function:

void tuttle::plugin::viewer::showGreenChannelTexture ( )

Definition at line 198 of file ViewerAlgorithm.hpp.

References displayChannelTexture().

Referenced by keyboard().

Here is the call graph for this function:

void tuttle::plugin::viewer::showRedChannelTexture ( )

Definition at line 193 of file ViewerAlgorithm.hpp.

References displayChannelTexture().

Referenced by keyboard().

Here is the call graph for this function:

void tuttle::plugin::viewer::specialKeyboard ( int  k,
int  x,
int  y 
)

Definition at line 401 of file ViewerAlgorithm.hpp.

References displayHelp().

Referenced by openGLWindow().

Here is the call graph for this function:

void tuttle::plugin::viewer::zoom ( float  factor)

Definition at line 302 of file ViewerAlgorithm.hpp.

Referenced by mouse().


Variable Documentation

Definition at line 46 of file ViewerAlgorithm.hpp.

Definition at line 26 of file ViewerAlgorithm.hpp.

Referenced by sam::samdo::decomposeCommandLine(), and main().

char* tuttle::plugin::viewer::argv[2] = { (char*)"", NULL }

Definition at line 25 of file ViewerAlgorithm.hpp.

Referenced by openGLWindow().

Definition at line 55 of file ViewerAlgorithm.hpp.

Definition at line 54 of file ViewerAlgorithm.hpp.

Referenced by mouse().

Definition at line 59 of file ViewerAlgorithm.hpp.

Referenced by keyboard().

Definition at line 60 of file ViewerAlgorithm.hpp.

Referenced by keyboard().

Definition at line 49 of file ViewerAlgorithm.hpp.

const bool tuttle::plugin::viewer::kSupportTiles = false [static]

Definition at line 12 of file ViewerPluginFactory.cpp.

const std::string tuttle::plugin::viewer::kViewerHelp = "ESC, Return, Space : quit and continue process" [static]

Definition at line 11 of file ViewerDefinitions.hpp.

Referenced by displayHelp().

Definition at line 69 of file ViewerAlgorithm.hpp.

Definition at line 68 of file ViewerAlgorithm.hpp.

Definition at line 67 of file ViewerAlgorithm.hpp.

Definition at line 66 of file ViewerAlgorithm.hpp.

Definition at line 49 of file ViewerAlgorithm.hpp.

Referenced by reshape().

Definition at line 43 of file ViewerAlgorithm.hpp.

Definition at line 58 of file ViewerAlgorithm.hpp.

Referenced by display().

Definition at line 58 of file ViewerAlgorithm.hpp.

Referenced by display().

Definition at line 63 of file ViewerAlgorithm.hpp.

Referenced by motion().

Definition at line 51 of file ViewerAlgorithm.hpp.

Referenced by mapToImage().

Definition at line 58 of file ViewerAlgorithm.hpp.

Referenced by display().

Definition at line 58 of file ViewerAlgorithm.hpp.

Referenced by display().

Definition at line 51 of file ViewerAlgorithm.hpp.

Referenced by mapToImage().