Gyoto
Public Member Functions | Public Attributes | List of all members
Gyoto::Screen::Coord1dSet Class Referenceabstract

Set of 1-d coordinates: indices or angles. More...

#include <GyotoScreen.h>

Inheritance diagram for Gyoto::Screen::Coord1dSet:
Gyoto::Screen::Angles Gyoto::Screen::Indices Gyoto::Screen::Range Gyoto::Screen::RepeatAngle

Public Member Functions

 Coord1dSet (CoordType_e k)
 Set kind during initialization.
 
virtual ~Coord1dSet ()
 Virtual destructor.
 
virtual void begin ()=0
 Reset specifier to point to the first value.
 
virtual bool valid ()=0
 True if pointing to something, false if end has been reached.
 
virtual size_t size ()=0
 Number of values in this container.
 
virtual size_t operator* () const
 Get size_t value crrently pointed to.
 
virtual double angle () const
 Get double value currently pointed to.
 
virtual Coord1dSetoperator++ ()=0
 Increment iterator (point to next value)
 

Public Attributes

const CoordType_e kind
 Whether this specifier represents angles or pixels.
 

Detailed Description

Set of 1-d coordinates: indices or angles.

Acts like a container (array-like) of either size_t (pixel coordinate) or double (angle) values. This container can be iterated-through using the operator++(), derefenced using the operator*() (if containing pixel coordinates) or angle() (in containing angles).


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