TuttleOFX  1
tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord > Class Template Reference

#include <ParamRectangleFromTwoCorners.hpp>

Inheritance diagram for tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >:
Collaboration diagram for tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >:

Public Member Functions

 ParamRectangleFromTwoCorners (const InteractInfos &infos, OFX::Double2DParam *paramA, OFX::Double2DParam *paramB, const TFrame &relativeClip)
 ~ParamRectangleFromTwoCorners ()
bool draw (const OFX::DrawArgs &args) const
 the function called to draw in the interact
ESelectType selectType (const OFX::PenArgs &args) const
MotionType intersect (const OFX::PenArgs &args)
bool isIn (const OfxRectD &)
Point2 getPoint () const
void setPoint (const Scalar x, const Scalar y)

Private Types

enum  ESelectType {
  eSelectTypeNone, eSelectTypeT, eSelectTypeL, eSelectTypeR,
  eSelectTypeB, eSelectTypeTL, eSelectTypeTR, eSelectTypeBL,
  eSelectTypeBR, eSelectTypeC
}

Private Attributes

OFX::Double2DParam_paramA
 same as TL (min)
OFX::Double2DParam_paramB
 same as BR (max)
TFrame _relativeFrame
ESelectType _selectType

Detailed Description

template<class TFrame, ECoordinateSystem coord>
class tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >

Definition at line 18 of file ParamRectangleFromTwoCorners.hpp.


Member Enumeration Documentation

template<class TFrame , ECoordinateSystem coord>
enum tuttle::plugin::interact::ParamRectangleFromTwoCorners::ESelectType [private]

T TL___________ TR | | L | C | R | | |_________| BL BR B

Enumerator:
eSelectTypeNone 
eSelectTypeT 
eSelectTypeL 
eSelectTypeR 
eSelectTypeB 
eSelectTypeTL 
eSelectTypeTR 
eSelectTypeBL 
eSelectTypeBR 
eSelectTypeC 

Definition at line 39 of file ParamRectangleFromTwoCorners.hpp.


Constructor & Destructor Documentation

template<class TFrame , ECoordinateSystem coord>
tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::ParamRectangleFromTwoCorners ( const InteractInfos infos,
OFX::Double2DParam paramA,
OFX::Double2DParam paramB,
const TFrame &  relativeClip 
)

Definition at line 143 of file ParamRectangleFromTwoCorners.hpp.

template<class TFrame , ECoordinateSystem coord>
tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::~ParamRectangleFromTwoCorners ( )

Definition at line 151 of file ParamRectangleFromTwoCorners.hpp.


Member Function Documentation

template<class TFrame , ECoordinateSystem coord>
bool tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::draw ( const OFX::DrawArgs args) const [virtual]
template<class TFrame , ECoordinateSystem coord>
bool tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::isIn ( const OfxRectD rect) [virtual]
template<class TFrame , ECoordinateSystem coord>
void tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::setPoint ( const Scalar  x,
const Scalar  y 
) [inline, virtual]

Implements tuttle::plugin::interact::PointInteract.

Definition at line 71 of file ParamRectangleFromTwoCorners.hpp.

References tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::_paramA, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::_paramB, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::_relativeFrame, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::_selectType, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::eSelectTypeB, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::eSelectTypeBL, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::eSelectTypeBR, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::eSelectTypeC, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::eSelectTypeL, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::eSelectTypeNone, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::eSelectTypeR, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::eSelectTypeT, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::eSelectTypeTL, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::eSelectTypeTR, tuttle::plugin::interact::ParamRectangleFromTwoCorners< TFrame, coord >::getPoint(), tuttle::plugin::interact::PointInteract::getTime(), OFX::Double2DParam::getValue(), tuttle::plugin::viewer::mouse(), tuttle::plugin::pointCanonicalXYToNormalizedXXc(), OFX::Double2DParam::setValue(), OfxPointD::x, OfxRectD::x1, OfxRectD::x2, OfxPointD::y, OfxRectD::y1, and OfxRectD::y2.

Here is the call graph for this function:


Field Documentation


The documentation for this class was generated from the following file: