OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Types | Public Member Functions | Protected Attributes | List of all members
ossimRefreshEvent Class Reference

#include <ossimRefreshEvent.h>

Inheritance diagram for ossimRefreshEvent:
ossimEvent ossimObject ossimReferenced

Public Types

enum  RefreshType {
  REFRESH_NONE = 0, REFRESH_POSITION = 1, REFRESH_PIXELS = 2, REFRESH_GEOMETRY = 4,
  REFRESH_ALL = (REFRESH_POSITION|REFRESH_PIXELS|REFRESH_GEOMETRY)
}
 
enum  PositionAnchor { ANCHOR_UPPER_LEFT = 1, ANCHOR_CENTER = 2 }
 
- Public Types inherited from ossimEvent
enum  PropagationType { PROPAGATION_NONE = 0, PROPAGATION_INPUT = 1, PROPAGATION_OUTPUT = 2 }
 

Public Member Functions

 ossimRefreshEvent (ossimObject *object=0)
 
 ossimRefreshEvent (RefreshType refreshType, ossimObject *object=0)
 
 ossimRefreshEvent (const ossimRefreshEvent &src)
 
virtual ossimObjectdup () const
 
void setRefreshType (int refreshType, bool on=true)
 
RefreshType getRefreshType () const
 
void setPosition (const ossimDpt &position)
 
const ossimDptgetPosition () const
 
- Public Member Functions inherited from ossimEvent
 ossimEvent (ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID)
 
 ossimEvent (const ossimEvent &rhs)
 
long getId () const
 
void setId (long id)
 
bool isConsumed () const
 
void setConsumedFlag (bool flag=true)
 
void consume ()
 
const ossimObjectgetObject () const
 This is the originating object that originally produced the event. More...
 
ossimObjectgetObject ()
 
const ossimObjectgetCurrentObject () const
 
ossimObjectgetCurrentObject ()
 
void setObject (ossimObject *object)
 
void setCurrentObject (ossimObject *object)
 
void setPropagationType (PropagationType type)
 
bool isPropagatingToOutputs () const
 
bool isPropagatingToInputs () const
 
- Public Member Functions inherited from ossimObject
 ossimObject ()
 
virtual ~ossimObject ()
 
virtual ossimString getShortName () const
 
virtual ossimString getLongName () const
 
virtual ossimString getDescription () const
 
virtual ossimString getClassName () const
 
virtual RTTItypeid getType () const
 
virtual bool canCastTo (ossimObject *obj) const
 
virtual bool canCastTo (const RTTItypeid &id) const
 
virtual bool canCastTo (const ossimString &parentClassName) const
 
virtual bool saveState (ossimKeywordlist &kwl, const char *prefix=0) const
 
virtual bool loadState (const ossimKeywordlist &kwl, const char *prefix=0)
 
virtual std::ostream & print (std::ostream &out) const
 Generic print method. More...
 
virtual bool isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const
 
virtual void accept (ossimVisitor &visitor)
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (const ossimReferenced &)
 
void ref () const
 increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unref () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unref_nodelete () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
int referenceCount () const
 

Protected Attributes

RefreshType m_refreshType
 
ossimDpt m_position
 
PositionAnchor m_anchor
 
- Protected Attributes inherited from ossimEvent
ossimObjecttheObject
 
ossimObjecttheCurrentObject
 
long theId
 
bool theIsConsumedFlag
 
PropagationType thePropagationType
 

Additional Inherited Members

- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Detailed Description

Definition at line 16 of file ossimRefreshEvent.h.

Member Enumeration Documentation

◆ PositionAnchor

Enumerator
ANCHOR_UPPER_LEFT 
ANCHOR_CENTER 

Definition at line 27 of file ossimRefreshEvent.h.

◆ RefreshType

Constructor & Destructor Documentation

◆ ossimRefreshEvent() [1/3]

ossimRefreshEvent::ossimRefreshEvent ( ossimObject object = 0)
inline

Definition at line 32 of file ossimRefreshEvent.h.

34  m_refreshType(static_cast<RefreshType>(REFRESH_PIXELS|REFRESH_GEOMETRY)),
36  {m_position.makeNan();}
PositionAnchor m_anchor
ossimEvent(ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID)
Definition: ossimEvent.cpp:16
#define OSSIM_EVENT_REFRESH_ID
Definition: ossimEventIds.h:24
RefreshType m_refreshType
void makeNan()
Definition: ossimDpt.h:65

◆ ossimRefreshEvent() [2/3]

ossimRefreshEvent::ossimRefreshEvent ( RefreshType  refreshType,
ossimObject object = 0 
)
inline

Definition at line 37 of file ossimRefreshEvent.h.

39  m_refreshType(refreshType),
41 
42  {
44  }
PositionAnchor m_anchor
ossimEvent(ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID)
Definition: ossimEvent.cpp:16
#define OSSIM_EVENT_REFRESH_ID
Definition: ossimEventIds.h:24
RefreshType m_refreshType
void makeNan()
Definition: ossimDpt.h:65

◆ ossimRefreshEvent() [3/3]

ossimRefreshEvent::ossimRefreshEvent ( const ossimRefreshEvent src)
inline

Definition at line 45 of file ossimRefreshEvent.h.

46  :ossimEvent(src),
49  m_anchor(src.m_anchor)
50  {
51  }
PositionAnchor m_anchor
ossimEvent(ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID)
Definition: ossimEvent.cpp:16
RefreshType m_refreshType

Member Function Documentation

◆ dup()

virtual ossimObject* ossimRefreshEvent::dup ( ) const
inlinevirtual

Reimplemented from ossimObject.

Definition at line 52 of file ossimRefreshEvent.h.

53  {
54  return new ossimRefreshEvent(*this);
55  }
ossimRefreshEvent(ossimObject *object=0)

◆ getPosition()

const ossimDpt& ossimRefreshEvent::getPosition ( ) const
inline

Definition at line 66 of file ossimRefreshEvent.h.

66 {return m_position;}

◆ getRefreshType()

RefreshType ossimRefreshEvent::getRefreshType ( ) const
inline

Definition at line 58 of file ossimRefreshEvent.h.

Referenced by ossimImageRenderer::refreshEvent().

58 {return m_refreshType;}
RefreshType m_refreshType

◆ setPosition()

void ossimRefreshEvent::setPosition ( const ossimDpt position)
inline

Definition at line 60 of file ossimRefreshEvent.h.

61  {
62  m_position = position;
64  }
void setRefreshType(int refreshType, bool on=true)
bool hasNans() const
Definition: ossimDpt.h:67

◆ setRefreshType()

void ossimRefreshEvent::setRefreshType ( int  refreshType,
bool  on = true 
)

Definition at line 16 of file ossimRefreshEvent.cpp.

References m_refreshType, and REFRESH_ALL.

17 {
18  if(on)
19  {
20  m_refreshType = static_cast<RefreshType>(m_refreshType | refreshType);
21  }
22  else
23  {
24  m_refreshType = static_cast<RefreshType>(((~refreshType)&(m_refreshType))&REFRESH_ALL);
25  }
26 }
RefreshType m_refreshType

Member Data Documentation

◆ m_anchor

PositionAnchor ossimRefreshEvent::m_anchor
protected

Definition at line 72 of file ossimRefreshEvent.h.

◆ m_position

ossimDpt ossimRefreshEvent::m_position
protected

Definition at line 71 of file ossimRefreshEvent.h.

◆ m_refreshType

RefreshType ossimRefreshEvent::m_refreshType
protected

Definition at line 70 of file ossimRefreshEvent.h.

Referenced by setRefreshType().


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