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

#include <ossimDisplayListEvent.h>

Inheritance diagram for ossimDisplayListEvent:
ossimEvent ossimObject ossimReferenced

Public Member Functions

 ossimDisplayListEvent (ossimObject *obj=NULL)
 
void addDisplay (void *display)
 
virtual ossimObjectdup () const
 
void * firstDisplay ()
 
void * nextDisplay ()
 
void clearList ()
 
- 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

std::map< void *, void * > theDisplayMap
 
std::map< void *, void * >::iterator theDisplayIterator
 
- Protected Attributes inherited from ossimEvent
ossimObjecttheObject
 
ossimObjecttheCurrentObject
 
long theId
 
bool theIsConsumedFlag
 
PropagationType thePropagationType
 

Additional Inherited Members

- Public Types inherited from ossimEvent
enum  PropagationType { PROPAGATION_NONE = 0, PROPAGATION_INPUT = 1, PROPAGATION_OUTPUT = 2 }
 
- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Detailed Description

Definition at line 6 of file ossimDisplayListEvent.h.

Constructor & Destructor Documentation

◆ ossimDisplayListEvent()

ossimDisplayListEvent::ossimDisplayListEvent ( ossimObject obj = NULL)
inline

Definition at line 9 of file ossimDisplayListEvent.h.

11  {
13  }
#define OSSIM_EVENT_DISPLAY_LIST_ID
Definition: ossimEventIds.h:61
std::map< void *, void * > theDisplayMap
ossimEvent(ossimObject *object=NULL, long id=OSSIM_EVENT_NULL_ID)
Definition: ossimEvent.cpp:16
std::map< void *, void * >::iterator theDisplayIterator

Member Function Documentation

◆ addDisplay()

void ossimDisplayListEvent::addDisplay ( void *  display)

Definition at line 5 of file ossimDisplayListEvent.cpp.

References theDisplayMap.

6 {
7  std::map<void*, void*>::iterator iter = theDisplayMap.find(display);
8 
9  if(iter == theDisplayMap.end())
10  {
11  theDisplayMap.insert(std::make_pair(display, display));
12  }
13 }
std::map< void *, void * > theDisplayMap

◆ clearList()

void ossimDisplayListEvent::clearList ( )

Definition at line 39 of file ossimDisplayListEvent.cpp.

References theDisplayIterator, and theDisplayMap.

40 {
41  theDisplayMap.clear();
43 }
std::map< void *, void * > theDisplayMap
std::map< void *, void * >::iterator theDisplayIterator

◆ dup()

virtual ossimObject* ossimDisplayListEvent::dup ( ) const
inlinevirtual

Reimplemented from ossimObject.

Definition at line 15 of file ossimDisplayListEvent.h.

16  {
17  return new ossimDisplayListEvent(*this);
18  }
ossimDisplayListEvent(ossimObject *obj=NULL)

◆ firstDisplay()

void * ossimDisplayListEvent::firstDisplay ( )

Definition at line 15 of file ossimDisplayListEvent.cpp.

References theDisplayIterator, and theDisplayMap.

16 {
18 
20  {
21  return (*theDisplayIterator).first;
22  }
23 
24  return NULL;
25 }
std::map< void *, void * > theDisplayMap
std::map< void *, void * >::iterator theDisplayIterator

◆ nextDisplay()

void * ossimDisplayListEvent::nextDisplay ( )

Definition at line 27 of file ossimDisplayListEvent.cpp.

References theDisplayIterator, and theDisplayMap.

28 {
30 
32  {
33  return (*theDisplayIterator).first;
34  }
35 
36  return NULL;
37 }
std::map< void *, void * > theDisplayMap
std::map< void *, void * >::iterator theDisplayIterator

Member Data Documentation

◆ theDisplayIterator

std::map<void*, void*>::iterator ossimDisplayListEvent::theDisplayIterator
protected

Definition at line 26 of file ossimDisplayListEvent.h.

Referenced by clearList(), firstDisplay(), and nextDisplay().

◆ theDisplayMap

std::map<void*, void*> ossimDisplayListEvent::theDisplayMap
protected

Definition at line 25 of file ossimDisplayListEvent.h.

Referenced by addDisplay(), clearList(), firstDisplay(), and nextDisplay().


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