TuttleOFX
1
|
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 |
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().
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 | ( | ) |
Definition at line 271 of file ViewerAlgorithm.hpp.
References tuttle::plugin::viewer::ImgProperties::format, and tuttle::plugin::viewer::ImgProperties::type.
Referenced by keyboard().
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().
void tuttle::plugin::viewer::loadAlphaTexture | ( | ) |
Definition at line 137 of file ViewerAlgorithm.hpp.
References tuttle::plugin::viewer::ImgProperties::data, tuttle::plugin::viewer::ImgProperties::format, tuttle::plugin::viewer::ImgProperties::height, tuttle::plugin::viewer::ImgProperties::internalFormat, tuttle::plugin::viewer::ImgProperties::type, and tuttle::plugin::viewer::ImgProperties::width.
Referenced by showAlphaChannelTexture().
void tuttle::plugin::viewer::loadNewTexture | ( | const ImgProperties & | properties | ) |
Definition at line 99 of file ViewerAlgorithm.hpp.
References tuttle::plugin::viewer::ImgProperties::data, tuttle::plugin::viewer::ImgProperties::format, tuttle::plugin::viewer::ImgProperties::height, tuttle::plugin::viewer::ImgProperties::internalFormat, tuttle::plugin::viewer::ImgProperties::type, and tuttle::plugin::viewer::ImgProperties::width.
Referenced by displayChannelTexture(), loadNewTexture(), reloadTexture(), and tuttle::plugin::viewer::ViewerPlugin::render().
void tuttle::plugin::viewer::loadNewTexture | ( | const char * | data, |
GLint | internalFormat, | ||
size_t | width, | ||
size_t | height, | ||
GLenum | format, | ||
GLenum | type | ||
) |
Definition at line 112 of file ViewerAlgorithm.hpp.
References tuttle::plugin::viewer::ImgProperties::component, tuttle::plugin::viewer::ImgProperties::data, tuttle::plugin::viewer::ImgProperties::format, height, tuttle::plugin::viewer::ImgProperties::height, tuttle::plugin::viewer::ImgProperties::internalFormat, loadNewTexture(), tuttle::plugin::viewer::ImgProperties::type, width, and tuttle::plugin::viewer::ImgProperties::width.
void tuttle::plugin::viewer::mapToImage | ( | int | x, |
int | y, | ||
int & | iX, | ||
int & | iY | ||
) |
Definition at line 310 of file ViewerAlgorithm.hpp.
References tuttle::plugin::viewer::ImgProperties::height, tuttle::plugin::viewer::ImgProperties::width, xMinViewport, and yMinViewport.
Referenced by mouse().
tuttle::plugin::viewer::mDeclarePluginFactory | ( | ViewerPluginFactory | ) |
void tuttle::plugin::viewer::motion | ( | int | x, |
int | y | ||
) |
Definition at line 493 of file ViewerAlgorithm.hpp.
References tuttle::plugin::viewer::ImgProperties::height, move(), tuttle::plugin::viewer::ImgProperties::width, and x_mouse_ref.
Referenced by terry::filter::modifyVectors(), terry::filter::motionvectors_resample_pixels(), and openGLWindow().
void tuttle::plugin::viewer::mouse | ( | int | button, |
int | state, | ||
int | x, | ||
int | y | ||
) |
Definition at line 423 of file ViewerAlgorithm.hpp.
References tuttle::plugin::viewer::ImgProperties::component, tuttle::plugin::viewer::ImgProperties::data, factorZoom, tuttle::plugin::viewer::ImgProperties::height, mapToImage(), move(), tuttle::plugin::viewer::ImgProperties::type, tuttle::plugin::viewer::ImgProperties::width, and zoom().
Referenced by tuttle::plugin::interact::clicDouble2D(), tuttle::plugin::interact::SelectionManipulator::intersect(), tuttle::plugin::interact::PointInteract::intersect(), openGLWindow(), tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::setPoint(), and tuttle::plugin::interact::ParamRectangleFromCenterSize< TFrame, coord >::setPoint().
void tuttle::plugin::viewer::move | ( | float | x, |
float | y | ||
) |
Definition at line 294 of file ViewerAlgorithm.hpp.
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().
void tuttle::plugin::viewer::reloadTexture | ( | ) |
Definition at line 132 of file ViewerAlgorithm.hpp.
References loadNewTexture().
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 |
||
) |
Definition at line 151 of file ViewerAlgorithm.hpp.
References tuttle::plugin::viewer::ImgProperties::format.
Referenced by displayChannelTexture(), and showAlphaChannelTexture().
void tuttle::plugin::viewer::showAlphaChannelTexture | ( | ) |
Definition at line 208 of file ViewerAlgorithm.hpp.
References loadAlphaTexture(), and setTransfert().
Referenced by keyboard().
void tuttle::plugin::viewer::showBlueChannelTexture | ( | ) |
Definition at line 203 of file ViewerAlgorithm.hpp.
References displayChannelTexture().
Referenced by keyboard().
void tuttle::plugin::viewer::showGreenChannelTexture | ( | ) |
Definition at line 198 of file ViewerAlgorithm.hpp.
References displayChannelTexture().
Referenced by keyboard().
void tuttle::plugin::viewer::showRedChannelTexture | ( | ) |
Definition at line 193 of file ViewerAlgorithm.hpp.
References displayChannelTexture().
Referenced by keyboard().
void tuttle::plugin::viewer::specialKeyboard | ( | int | k, |
int | x, | ||
int | y | ||
) |
Definition at line 401 of file ViewerAlgorithm.hpp.
References displayHelp().
Referenced by openGLWindow().
void tuttle::plugin::viewer::zoom | ( | float | factor | ) |
Definition at line 302 of file ViewerAlgorithm.hpp.
Referenced by mouse().
int tuttle::plugin::viewer::angle_cam = 60 |
Definition at line 46 of file ViewerAlgorithm.hpp.
int tuttle::plugin::viewer::argc = 1 |
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().
float tuttle::plugin::viewer::currentZoom = 1.0 |
Definition at line 55 of file ViewerAlgorithm.hpp.
float tuttle::plugin::viewer::factorZoom = 1.25 |
Definition at line 54 of file ViewerAlgorithm.hpp.
Referenced by mouse().
bool tuttle::plugin::viewer::flip = false |
Definition at line 59 of file ViewerAlgorithm.hpp.
Referenced by keyboard().
bool tuttle::plugin::viewer::flop = false |
Definition at line 60 of file ViewerAlgorithm.hpp.
Referenced by keyboard().
Definition at line 49 of file ViewerAlgorithm.hpp.
Definition at line 40 of file ViewerAlgorithm.hpp.
Referenced by tuttle::plugin::nlmDenoiser::NLMDenoiserProcess< View >::addFrame(), terry::filter::correlateMotionVectors(), displayChannelTexture(), tuttle::host::graph::visitor::Process< TGraph >::finish_vertex(), tuttle::plugin::ImageGilProcessor< DView >::getCustomView(), tuttle::plugin::ImageGilProcessor< DView >::getView(), main(), tuttle::plugin::av::writer::AVWriterProcess< View >::multiThreadProcessImages(), tuttle::plugin::openImageIO::reader::OpenImageIOReaderProcess< View >::multiThreadProcessImages(), tuttle::plugin::exr::reader::EXRReaderProcess< View >::multiThreadProcessImages(), tuttle::plugin::dpx::reader::DPXReaderProcess< View >::readImage(), tuttle::plugin::exr::writer::EXRWriterProcess< View >::writeGrayImage(), tuttle::plugin::dpx::writer::DPXWriterProcess< View >::writeImage(), tuttle::plugin::openImageIO::writer::OpenImageIOWriterProcess< View >::writeImage(), tuttle::plugin::jpeg2000::writer::Jpeg2000WriterProcess< View >::writeImage(), and tuttle::plugin::exr::writer::EXRWriterProcess< View >::writeImage().
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().
float tuttle::plugin::viewer::scale = 1.0 |
Definition at line 50 of file ViewerAlgorithm.hpp.
Referenced by tuttle::plugin::swscale::SwscalePlugin::getRegionOfDefinition(), tuttle::plugin::resize::ResizePlugin::getRegionOfDefinition(), tuttle::plugin::lens::LensDistortPlugin::getRegionOfDefinition(), tuttle::plugin::swscale::SwscalePlugin::isIdentity(), tuttle::plugin::colorCubeViewer::GeodesicForm::scaleGeodesicForm(), tuttle::plugin::colorSpaceKeyer::GeodesicForm::scaleGeodesicForm(), and tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::selectType().
bool tuttle::plugin::viewer::showAlphaChannel = false |
Definition at line 69 of file ViewerAlgorithm.hpp.
bool tuttle::plugin::viewer::showBlueChannel = false |
Definition at line 68 of file ViewerAlgorithm.hpp.
bool tuttle::plugin::viewer::showGreenChannel = false |
Definition at line 67 of file ViewerAlgorithm.hpp.
bool tuttle::plugin::viewer::showRedChannel = false |
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 63 of file ViewerAlgorithm.hpp.
Definition at line 51 of file ViewerAlgorithm.hpp.
Referenced by mapToImage().