synfig-core  1.0.3
Public Types | Public Member Functions | List of all members
synfig::WidthPoint Class Reference

#include <widthpoint.h>

Inheritance diagram for synfig::WidthPoint:
synfig::UniqueID

Public Types

enum  SideType {
  TYPE_INTERPOLATE = 0, TYPE_ROUNDED = 1, TYPE_SQUARED = 2, TYPE_PEAK = 3,
  TYPE_FLAT = 4
}

Public Member Functions

 WidthPoint ()
 WidthPoint (Real position, Real width, int sidebefore=TYPE_INTERPOLATE, int sideafter=TYPE_INTERPOLATE, bool dash_=false)
const Realget_position () const
void set_position (const Real &x)
Real get_norm_position (bool wplistloop) const
Real get_bound_position (bool wplistloop) const
void normalize (bool loop)
void reverse ()
const Realget_width () const
void set_width (Real x)
int get_side_type_before () const
void set_side_type_before (int sidebefore)
int get_side_type_after () const
void set_side_type_after (int sideafter)
int get_side_type (int i) const
bool get_dash () const
void set_dash (bool l)
Real get_lower_bound () const
void set_lower_bound (Real lb)
Real get_upper_bound () const
void set_upper_bound (Real ub)
bool operator< (const WidthPoint &rhs)
bool operator== (const WidthPoint &rhs)
- Public Member Functions inherited from synfig::UniqueID
const int & get_uid () const
 Returns the internal unique identifier for this object.
 UniqueID ()
void make_unique ()
 operator bool () const
void mimic (const UniqueID &x)
bool operator== (const UniqueID &rhs) const
bool operator!= (const UniqueID &rhs) const
bool operator< (const UniqueID &rhs) const

Additional Inherited Members

- Static Public Member Functions inherited from synfig::UniqueID
static const UniqueID nil ()

Member Enumeration Documentation

Enumerator:
TYPE_INTERPOLATE 
TYPE_ROUNDED 
TYPE_SQUARED 
TYPE_PEAK 
TYPE_FLAT 

Constructor & Destructor Documentation

WidthPoint::WidthPoint ( )

References TYPE_INTERPOLATE.

WidthPoint::WidthPoint ( Real  position,
Real  width,
int  sidebefore = TYPE_INTERPOLATE,
int  sideafter = TYPE_INTERPOLATE,
bool  dash_ = false 
)

Member Function Documentation

const Real & WidthPoint::get_position ( ) const
void WidthPoint::set_position ( const Real x)
Real WidthPoint::get_norm_position ( bool  wplistloop) const
Real WidthPoint::get_bound_position ( bool  wplistloop) const

Referenced by get_norm_position().

void WidthPoint::normalize ( bool  loop)
void WidthPoint::reverse ( )

Referenced by reverse_value().

const Real & WidthPoint::get_width ( ) const
void WidthPoint::set_width ( Real  x)
int WidthPoint::get_side_type_before ( ) const
void WidthPoint::set_side_type_before ( int  sidebefore)
int WidthPoint::get_side_type_after ( ) const
void WidthPoint::set_side_type_after ( int  sideafter)
int WidthPoint::get_side_type ( int  i) const

Referenced by operator==().

bool WidthPoint::get_dash ( ) const
void WidthPoint::set_dash ( bool  l)
Real WidthPoint::get_lower_bound ( ) const

Referenced by operator==().

void WidthPoint::set_lower_bound ( Real  lb)
Real WidthPoint::get_upper_bound ( ) const

Referenced by operator==().

void WidthPoint::set_upper_bound ( Real  ub)
bool WidthPoint::operator< ( const WidthPoint rhs)

References get_position().

bool WidthPoint::operator== ( const WidthPoint rhs)

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