FEMSuite
Public Member Functions | Protected Attributes | List of all members
ScreenBase Class Reference

This class implements the basic functions of IScreen More...

#include <ScreenBase.h>

Inheritance diagram for ScreenBase:
Inheritance graph
[legend]
Collaboration diagram for ScreenBase:
Collaboration graph
[legend]

Public Member Functions

ObjectManagerGetObjectManager () const override
 
void SetObjectManager (ObjectManager *const om) override
 
virtual void Redraw () override
 
virtual void DrawLine (const Point< Pixel > &p0, const Point< Pixel > &pF, const Color &c) override
 
virtual void DrawLine (const Point< Spatial > &p0, const Point< Spatial > &pF, const Color &c) override
 
virtual void DrawQuad (const std::array< Point< Pixel >, 4 > &, const DisplayStyle &) override
 
virtual void DrawQuad (const std::array< Point< Spatial >, 4 > &, const DisplayStyle &) override
 
virtual void DrawPolygon (const std::vector< Point< Pixel > > &, const DisplayStyle &) override
 
virtual void DrawPolygon (const std::vector< Point< Spatial > > &, const DisplayStyle &) override
 
virtual void DrawCircle (const Point< Pixel > &, const Pixel d, const DisplayStyle &, const int segments=CIRCLE_SEGMENTS_AUTO) override
 
virtual void DrawCircle (const Point< Spatial > &, const Spatial d, const DisplayStyle &, const int segments=CIRCLE_SEGMENTS_AUTO) override
 
virtual void DrawEllipse (const Point< Pixel > &, const DimensionArray< Pixel > &diameter, const Radian theta, const Radian phi, const DisplayStyle &, const int segments=CIRCLE_SEGMENTS_AUTO) override
 
virtual void DrawEllipse (const Point< Spatial > &, const DimensionArray< Spatial > &diameter, const Radian theta, const Radian phi, const DisplayStyle &, const int segments=CIRCLE_SEGMENTS_AUTO) override
 
virtual void DisplayText (const Point< Pixel > &, const std::string &, const Color &c, const unsigned int flags=0) override
 
virtual void DisplayText (const Point< Spatial > &, const std::string &, const Color &c, const unsigned int flags=0) override
 
virtual bool Is3D () const override
 
virtual Spatial GetDistancePerPixel () const override
 
virtual void SetDistancePerPixel (const Spatial dps) override
 
virtual void IncrementDistancePerPixel () override
 
virtual void DecrementDistancePerPixel () override
 
virtual Point< Spatial > GetTopLeftPoint () const override
 
virtual void SetTopLeftPoint (const Point< Spatial > &p) override
 
virtual Point< Spatial > PixelToPoint (const Point< Pixel > &p) override
 
virtual Point< Pixel > PointToPixel (const Point< Spatial > &) override
 
virtual Point< Spatial > CalculateBottomRightPoint () override
 
virtual Point< Spatial > GetCenter () override
 
virtual void Recenter (const Point< Spatial > &) override
 
void UpdateGridShifts ()
 
- Public Member Functions inherited from IScreen
virtual Pixel GetPixelWidth ()=0
 
virtual Pixel GetPixelHeight ()=0
 
virtual void Log (const std::string &)=0
 

Protected Attributes

ObjectManagerm_ObjectManager
 

Additional Inherited Members

- Public Types inherited from IScreen
enum  CursorType : unsigned char {
  Arrow, Hand, Rotation, Crosshair,
  Sideways, Updown, NESW, NWSE,
  NotAllowed, CURSORS
}
 This describes possible cursors that an object manager can pass to a screen More...
 

Detailed Description

This class implements the basic functions of IScreen

Member Function Documentation

virtual void ScreenBase::DisplayText ( const Point< Pixel > &  ,
const std::string &  ,
const Color c,
const unsigned int  flags = 0 
)
inlineoverridevirtual

Empty override is needed to avoid undefined abstract methods. The methods are overriden by the top-level subclasses (e.g. GLScreen)

Implements IScreen.

Reimplemented in GLScreen.

virtual void ScreenBase::DrawCircle ( const Point< Pixel > &  ,
const Pixel  d,
const DisplayStyle ,
const int  segments = CIRCLE_SEGMENTS_AUTO 
)
inlineoverridevirtual

Empty override is needed to avoid undefined abstract methods. The methods are overriden by the top-level subclasses (e.g. GLScreen)

Implements IScreen.

Reimplemented in GLScreen.

virtual void ScreenBase::DrawEllipse ( const Point< Pixel > &  ,
const DimensionArray< Pixel > &  diameter,
const Radian  theta,
const Radian  phi,
const DisplayStyle ,
const int  segments = CIRCLE_SEGMENTS_AUTO 
)
inlineoverridevirtual

Empty override is needed to avoid undefined abstract methods. The methods are overriden by the top-level subclasses (e.g. GLScreen)

Implements IScreen.

Reimplemented in GLScreen.

virtual void ScreenBase::DrawLine ( const Point< Pixel > &  p0,
const Point< Pixel > &  pF,
const Color c 
)
inlineoverridevirtual

Empty override is needed to avoid undefined abstract methods. The methods are overriden by the top-level subclasses (e.g. GLScreen)

Implements IScreen.

Reimplemented in GLScreen.

virtual void ScreenBase::DrawPolygon ( const std::vector< Point< Pixel > > &  ,
const DisplayStyle  
)
inlineoverridevirtual

Empty override is needed to avoid undefined abstract methods. The methods are overriden by the top-level subclasses (e.g. GLScreen)

Implements IScreen.

Reimplemented in GLScreen.

virtual void ScreenBase::DrawQuad ( const std::array< Point< Pixel >, 4 > &  ,
const DisplayStyle  
)
inlineoverridevirtual

Empty override is needed to avoid undefined abstract methods. The methods are overriden by the top-level subclasses (e.g. GLScreen)

Implements IScreen.

Reimplemented in GLScreen.


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