Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
OverviewOutlinesTool::Rect Class Reference

class to represent a single rectangle More...

#include <OverviewOutlinesTool.h>

Public Member Functions

 Rect (double left, double top, double right, double bottom)
 
Rect transformImgCoord (HuginBase::PTools::Transform *trans)
 transform the rectangle's coordinates with a certain transform
 
void center (double &x, double &y)
 get the center of the rectangle
 

Public Attributes

double val [4][2]
 

Detailed Description

class to represent a single rectangle

Definition at line 56 of file OverviewOutlinesTool.h.

Constructor & Destructor Documentation

◆ Rect()

OverviewOutlinesTool::Rect::Rect ( double  left,
double  top,
double  right,
double  bottom 
)
inline

Definition at line 58 of file OverviewOutlinesTool.h.

References val.

Member Function Documentation

◆ center()

void OverviewOutlinesTool::Rect::center ( double x,
double y 
)
inline

get the center of the rectangle

Definition at line 81 of file OverviewOutlinesTool.h.

References val.

◆ transformImgCoord()

Rect OverviewOutlinesTool::Rect::transformImgCoord ( HuginBase::PTools::Transform trans)
inline

transform the rectangle's coordinates with a certain transform

Returns
the transformed rectangle

Definition at line 68 of file OverviewOutlinesTool.h.

References OverviewOutlinesTool::res, threshold(), and val.

Referenced by OverviewOutlinesTool::DrawRect().

Member Data Documentation

◆ val

double OverviewOutlinesTool::Rect::val[4][2]

Definition at line 85 of file OverviewOutlinesTool.h.

Referenced by center(), Rect(), and transformImgCoord().


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