bpp-phyl  2.2.0
bpp::Cursor Class Reference

Data structure describing a plotting direction. More...

#include <Bpp/Phyl/Graphics/TreeDrawing.h>

Public Member Functions

 Cursor (double x, double y, double angle=0, short hpos=GraphicDevice::TEXT_HORIZONTAL_CENTER, short vpos=GraphicDevice::TEXT_VERTICAL_CENTER)
 
double getX () const
 
double getY () const
 
double getAngle () const
 
short getHPos () const
 
short getVPos () const
 
double addX (double increment)
 
double addY (double increment)
 
Cursor getTranslation (double x, double y) const
 

Private Attributes

double x_
 
double y_
 
double angle_
 
short hpos_
 
short vpos_
 

Detailed Description

Data structure describing a plotting direction.

Definition at line 87 of file TreeDrawing.h.

Constructor & Destructor Documentation

◆ Cursor()

bpp::Cursor::Cursor ( double  x,
double  y,
double  angle = 0,
short  hpos = GraphicDevice::TEXT_HORIZONTAL_CENTER,
short  vpos = GraphicDevice::TEXT_VERTICAL_CENTER 
)
inline

Definition at line 97 of file TreeDrawing.h.

Member Function Documentation

◆ addX()

double bpp::Cursor::addX ( double  increment)
inline

Definition at line 106 of file TreeDrawing.h.

References x_.

Referenced by getTranslation().

◆ addY()

double bpp::Cursor::addY ( double  increment)
inline

Definition at line 107 of file TreeDrawing.h.

References y_.

Referenced by getTranslation().

◆ getAngle()

◆ getHPos()

◆ getTranslation()

Cursor bpp::Cursor::getTranslation ( double  x,
double  y 
) const
inline

◆ getVPos()

◆ getX()

◆ getY()

Member Data Documentation

◆ angle_

double bpp::Cursor::angle_
private

Definition at line 92 of file TreeDrawing.h.

Referenced by getAngle().

◆ hpos_

short bpp::Cursor::hpos_
private

Definition at line 93 of file TreeDrawing.h.

Referenced by getHPos().

◆ vpos_

short bpp::Cursor::vpos_
private

Definition at line 94 of file TreeDrawing.h.

Referenced by getVPos().

◆ x_

double bpp::Cursor::x_
private

Definition at line 90 of file TreeDrawing.h.

Referenced by addX(), and getX().

◆ y_

double bpp::Cursor::y_
private

Definition at line 91 of file TreeDrawing.h.

Referenced by addY(), and getY().


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