Jump to content

PM2Drawable: Difference between revisions

From EDM2
Created page with "2D Base drawable class. PM2Drawable is an abstract base class which allows a graphic object to draw itself. ; Source: pm_2drawable.h:21 ; Author: Dmitry A Steklenev ; Versi..."
 
No edit summary
 
Line 53: Line 53:


==constructor PM2Drawable==
==constructor PM2Drawable==
? ^  >
Constructs the drawable object.


    Constructs the drawable object.
; Source: pm_2drawable.h:25


    Source:
; Code:
        pm_2drawable.h:25
 
    Code:
         public PM2Drawable ( )
         public PM2Drawable ( )


==destructor ~PM2Drawable==
==destructor ~PM2Drawable==
? ^  < >
Destructs the drawable object.


    Destructs the drawable object.
; Source: pm_2drawable.h:27


    Source:
; Code:
        pm_2drawable.h:27
  public virtual ~ PM2Drawable ( )
 
    Code:
        public virtual ~ PM2Drawable ( )


==constructor PM2Drawable==
==constructor PM2Drawable==
? ^  < >
Constructs the drawable object from another object.


    Constructs the drawable object from another object.
; Source: pm_2drawable.h:32


    Source:
; Code:
        pm_2drawable.h:32
  protected PM2Drawable (const PM2Drawable & )
 
    Code:
        protected PM2Drawable ( const PM2Drawable & )


==operator = ==
==operator = ==
Assigns the value of one drawable object to another.
Assigns the value of one drawable object to another.


    Source:
; Source: pm_2drawable.h:34
        pm_2drawable.h:34


    Code:
; Code:
        protected PM2Drawable & operator = ( const PM2Drawable & )
  protected PM2Drawable & operator = ( const PM2Drawable & )


==method draw==
==method draw==
Draws the graphic to the specified presentation space.


    Draws the graphic to the specified presentation space.
This is a pure virtual function.


    This is a pure virtual function.
; Source: pm_2drawable.h:44


    Source:
; Code:
        pm_2drawable.h:44
 
    Code:
         public virtual void draw ( HPS hps ) = 0
         public virtual void draw ( HPS hps ) = 0


==method bound==
==method bound==
Return the bounding rectangle for this graphic.


    Return the bounding rectangle for this graphic.
This is a pure virtual function.
 
    This is a pure virtual function.


    Source:
; Source: pm_2drawable.h:52
        pm_2drawable.h:52


    Code:
; Code:
         public virtual PMRect bound ( ) const = 0
         public virtual PMRect bound () const = 0


[[Category:Glass PM C++ API]]
[[Category:Glass PM C++ API]]

Latest revision as of 22:06, 14 March 2018

2D Base drawable class.

PM2Drawable is an abstract base class which allows a graphic object to draw itself.

Source
pm_2drawable.h:21
Author
Dmitry A Steklenev
Version
1.0

Contents

Entity Type Scope Short Description
PM2Drawable constructor public Constructs the drawable object.
~PM2Drawable destructor public Destructs the drawable object.
PM2Drawable constructor protected Constructs the drawable object from another object.
operator = operator protected Assigns the value of one drawable object to another.
draw method public Draws the graphic to the specified presentation space.
bound method public Return the bounding rectangle for this graphic.

constructor PM2Drawable

Constructs the drawable object.

Source
pm_2drawable.h:25
Code
       public PM2Drawable (	)

destructor ~PM2Drawable

Destructs the drawable object.

Source
pm_2drawable.h:27
Code
 public virtual ~ PM2Drawable ( )

constructor PM2Drawable

Constructs the drawable object from another object.

Source
pm_2drawable.h:32
Code
 protected PM2Drawable (const PM2Drawable & )

operator =

Assigns the value of one drawable object to another.

Source
pm_2drawable.h:34
Code
  protected PM2Drawable & operator = (	const PM2Drawable & )

method draw

Draws the graphic to the specified presentation space.

This is a pure virtual function.

Source
pm_2drawable.h:44
Code
       public virtual void draw (	HPS hps ) = 0

method bound

Return the bounding rectangle for this graphic.

This is a pure virtual function.

Source
pm_2drawable.h:52
Code
       public virtual PMRect bound () const = 0