OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGdalOgrVectorAnnotation.h>
Public Member Functions | |
ossimGdalOgrVectorAnnotation (ossimImageSource *inputSource=0) | |
virtual | ~ossimGdalOgrVectorAnnotation () |
virtual bool | open () |
virtual bool | open (const ossimFilename &file) |
virtual bool | isOpen () const |
virtual void | close () |
virtual ossimFilename | getFilename () const |
virtual bool | setView (ossimObject *baseObject) |
virtual ossimObject * | getView () |
virtual const ossimObject * | getView () const |
virtual ossimRefPtr< ossimImageGeometry > | getImageGeometry () const |
Returns the image geometry object associated with this tile source or NULL if non defined. More... | |
virtual ossimIrect | getBoundingRect (ossim_uint32 resLevel=0) const |
virtual void | computeBoundingRect () |
virtual void | drawAnnotations (ossimRefPtr< ossimImageData > tile) |
virtual void | setBrushColor (const ossimRgbVector &brushColor) |
virtual void | setPenColor (const ossimRgbVector &penColor) |
virtual ossimRgbVector | getPenColor () const |
virtual ossimRgbVector | getBrushColor () const |
virtual double | getPointRadius () const |
virtual void | setPointRadius (double r) |
virtual bool | getFillFlag () const |
virtual void | setFillFlag (bool flag) |
virtual void | setThickness (ossim_int32 thickness) |
virtual ossim_int32 | getThickness () const |
virtual void | setProperty (ossimRefPtr< ossimProperty > property) |
virtual ossimRefPtr< ossimProperty > | getProperty (const ossimString &name) const |
virtual void | getPropertyNames (std::vector< ossimString > &propertyNames) 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 |
Outputs theErrorStatus as an ossimErrorCode and an ossimString. More... | |
std::multimap< long, ossimAnnotationObject * > | getFeatureTable () |
void | setQuery (const ossimString &query) |
void | setGeometryBuffer (ossim_float64 distance, ossimUnitType type) |
void | initializeBoundingRec (vector< ossimGpt > points) |
bool | setCurrentEntry (ossim_uint32 entryIdx) |
![]() | |
ossimAnnotationSource (ossimImageSource *inputSource=0) | |
virtual | ~ossimAnnotationSource () |
virtual ossim_uint32 | getNumberOfOutputBands () const |
Returns the number of bands in a tile returned from this TileSource. More... | |
virtual ossimScalarType | getOutputScalarType () const |
This will be used to query the output pixel type of the tile source. More... | |
virtual ossimRefPtr< ossimImageData > | getTile (const ossimIrect &tileRect, ossim_uint32 resLevel=0) |
virtual void | initialize () |
virtual void | setNumberOfBands (ossim_uint32 bands) |
virtual bool | addObject (ossimAnnotationObject *anObject) |
virtual bool | deleteObject (ossimAnnotationObject *anObject) |
AnnotationObjectListType | pickObjects (const ossimDpt &imagePoint) |
AnnotationObjectListType | pickObjects (const ossimDrect &imageRect) |
const AnnotationObjectListType & | getObjectList () const |
AnnotationObjectListType & | getObjectList () |
void | deleteAll () |
![]() | |
ossimImageSourceFilter (ossimObject *owner=NULL) | |
ossimImageSourceFilter (ossimImageSource *inputSource) | |
ossimImageSourceFilter (ossimObject *owner, ossimImageSource *inputSource) | |
virtual void | getOutputBandList (std::vector< ossim_uint32 > &bandList) const |
virtual ossim_uint32 | getNumberOfInputBands () const |
bool | canConnectMyInputTo (ossim_int32 inputIndex, const ossimConnectableObject *object) const |
required to be overriden by derived classes More... | |
virtual void | connectInputEvent (ossimConnectionEvent &event) |
virtual void | disconnectInputEvent (ossimConnectionEvent &event) |
virtual void | propertyEvent (ossimPropertyEvent &event) |
virtual void | refreshEvent (ossimRefreshEvent &event) |
![]() | |
ossimImageSource (ossimObject *owner=0) | |
ossimImageSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimImageSource () |
virtual ossimRefPtr< ossimImageData > | getTile (const ossimIpt &origin, ossim_uint32 resLevel=0) |
virtual bool | getTile (ossimImageData *result, ossim_uint32 resLevel=0) |
Method to get a tile. More... | |
virtual ossimObject * | getObject () |
For RTTI support. More... | |
virtual const ossimObject * | getObject () const |
For RTTI support. More... | |
virtual void | getDecimationFactor (ossim_uint32 resLevel, ossimDpt &result) const |
Will return the decimation factor for the given resolution level. More... | |
virtual void | getDecimationFactors (std::vector< ossimDpt > &decimations) const |
Will return an array of all decimations for each resolution level. More... | |
virtual ossim_uint32 | getNumberOfDecimationLevels () const |
Will return the number of resolution levels. More... | |
virtual ossim_uint32 | getTileWidth () const |
Returns the default processing tile width. More... | |
virtual ossim_uint32 | getTileHeight () const |
Returns the default processing tile height. More... | |
virtual double | getNullPixelValue (ossim_uint32 band=0) const |
Each band has a null pixel associated with it. More... | |
virtual double | getMinPixelValue (ossim_uint32 band=0) const |
Returns the min pixel of the band. More... | |
virtual double | getMaxPixelValue (ossim_uint32 band=0) const |
Returns the max pixel of the band. More... | |
virtual void | getBoundingRect (ossimIrect &rect, ossim_uint32 resLevel=0) const |
Gets the bounding rectangle of the source. More... | |
virtual void | getValidImageVertices (std::vector< ossimIpt > &validVertices, ossimVertexOrdering ordering=OSSIM_CLOCKWISE_ORDER, ossim_uint32 resLevel=0) const |
ordering specifies how the vertices should be arranged. More... | |
virtual ossimRefPtr< ossimImageGeometry > | getImageGeometry () |
Returns the image geometry object associated with this tile source or NULL if not defined. More... | |
virtual void | setImageGeometry (const ossimImageGeometry *geom) |
Default implementation sets geometry of the first input to the geometry specified. More... | |
virtual void | saveImageGeometry () const |
Default method to call input's saveImageGeometry. More... | |
virtual void | saveImageGeometry (const ossimFilename &geometry_file) const |
Default method to call input's saveImageGeometry. More... | |
virtual bool | isIndexedData () const |
![]() | |
ossimSource (ossimObject *owner=0) | |
ossimSource (ossimObject *owner, ossim_uint32 inputListSize, ossim_uint32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimSource () |
virtual bool | isSourceEnabled () const |
virtual void | enableSource () |
virtual void | disableSource () |
virtual bool | getEnableFlag () const |
virtual void | setEnableFlag (bool flag) |
virtual bool | isInitialized () const |
virtual void | setInitializedFlag (bool flag) |
![]() | |
ossimConnectableObject (ossimObject *owner=0) | |
Base constructor of this object. More... | |
ossimConnectableObject (ossimObject *owner, ossim_int32 inputListSize, ossim_int32 outputListSize, bool inputListIsFixedFlag=true, bool outputListIsFixedFlag=true) | |
virtual | ~ossimConnectableObject () |
void | setId (const ossimId &id) |
All connectable objects will have id's. More... | |
const ossimId & | getId () const |
Will allow us to get this object's id. More... | |
const ossimObject * | getOwner () const |
Fetches the current owner, most likely a container but not limited to one. More... | |
virtual void | changeOwner (ossimObject *owner) |
Permits changing the object's owner. More... | |
virtual void | setDescription (const ossimString &description) |
virtual ossimString | getDescription () const |
virtual bool | isConnected (ossimConnectableObjectDirectionType direction=CONNECTABLE_DIRECTION_INPUT) const |
will check the direction specified to see if all slots are full. More... | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findConnectableObject(const ossimId &id)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(RTTItypeid typeId, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findObjectOfType(const ossimString &obj, ossimConnectableObjectDirectionType directionType, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual ossimConnectableObject *findInputObjectOfType(const ossimString &className)) | |
virtual ossim_int32 | findInputIndex (const ossimConnectableObject *object) |
Return a valid index of the input list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findInputIndex (const ossimId &id) |
Return a valid index of the input list if the passed id is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimConnectableObject *object) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | findOutputIndex (const ossimId &id) |
Return a valid index of the output list if the passed in object is found else return -1. More... | |
virtual ossim_int32 | getMyInputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual ossim_int32 | getMyOutputIndexToConnectTo (ossimConnectableObject *object) const |
Should return the first available index to connect to. More... | |
virtual bool | canConnectMyOutputTo (ossim_int32 myOutputIndex, const ossimConnectableObject *object) const |
default implementation is to allow anyone to connect to us. More... | |
virtual void | disconnect (ossimConnectableObject *object=0) |
Will disconnect the object passed in. More... | |
virtual void | disconnect (const ossimId &id) |
Will disconnect the object passed in. More... | |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyInput (ossim_int32 inputIndex, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given input index and generate a connection event. More... | |
virtual void | disconnectMyInput (ossimConnectableObject *input, bool disconnectOutputFlag=true, bool createEventFlag=true) |
Finds the index of the passed in input and calls disconnectMyInput(inputIndex, disconnectOutputFlag, createEventFlag);. More... | |
virtual void | disconnectMyInputs (ConnectableObjectList &inputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual ossimRefPtr< ossimConnectableObject > | disconnectMyOutput (ossim_int32 outputIndex, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the object at the given output index and generate a connection event. More... | |
virtual void | disconnectMyOutput (ossimConnectableObject *output, bool disconnectInputFlag=true, bool createEventFlag=true) |
Will disconnect the output object. More... | |
virtual void | disconnectMyOutputs (ConnectableObjectList &outputList, bool disconnectOutputFlag=true, bool createEventFlag=true) |
virtual void | disconnectAllInputs () |
Will disconnect all of the input objects. More... | |
virtual void | disconnectAllOutputs () |
Will disconnect all of the output objects. More... | |
virtual ossim_int32 | connectMyInputTo (ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will try to connect this objects input to the passed in object. More... | |
virtual ossim_int32 | connectMyInputTo (ossim_int32 inputIndex, ossimConnectableObject *inputObject, bool makeOutputConnection=true, bool createEventFlag=true) |
Will connect the specified input to the passed in object. More... | |
virtual bool | connectMyInputTo (ConnectableObjectList &inputList, bool makeOutputConnection=true, bool createEventFlag=true) |
virtual ossim_int32 | connectMyOutputTo (ossimConnectableObject *outputObject, bool makeInputConnection=true, bool createEventFlag=true) |
Will try to connect this objects output to the passed in object. More... | |
virtual bool | connectMyOutputTo (ConnectableObjectList &outputList, bool makeInputConnection=true, bool createEventFlag=true) |
virtual bool | connectInputList (ConnectableObjectList &inputList) |
Will disconnect itself from all inputs and reset to the passed in input list. More... | |
virtual bool | connectOutputList (ConnectableObjectList &outputList) |
Will disconnect itself from all outputs and reset to the passed in output list. More... | |
virtual ossim_uint32 | getNumberOfInputs () const |
Returns the number of input objects. More... | |
virtual ossim_uint32 | getNumberOfOutputs () const |
Return the number of output objects. More... | |
ossimConnectableObject * | getInput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getInput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
ossimConnectableObject * | getOutput (ossim_uint32 index=0) |
returns the object at the specified index. More... | |
const ossimConnectableObject * | getOutput (ossim_uint32 index=0) const |
returns the object at the specified index. More... | |
virtual void | setNumberOfInputs (ossim_int32 numberOfInputs) |
Will set the number of inputs. More... | |
virtual bool | getInputListIsFixedFlag () const |
virtual bool | getOutputListIsFixedFlag () const |
virtual void | setNumberOfOutputs (ossim_int32 numberOfInputs) |
Will set the number of outputs. More... | |
const ConnectableObjectList & | getInputList () const |
const ConnectableObjectList & | getOutputList () const |
ConnectableObjectList & | getInputList () |
ConnectableObjectList & | getOutputList () |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const RTTItypeid &typeInfo, bool recurse=true)) | |
OSSIM_DEPRECATE_METHOD (virtual void findAllObjectsOfType(ConnectableObjectList &result, const ossimString &className, bool recurse=true)) | |
virtual void | propagateEventToOutputs (ossimEvent &event) |
virtual void | propagateEventToInputs (ossimEvent &event) |
virtual void | setProperty (const ossimString &name, const ossimString &value) |
virtual ossim_uint32 | saveStateOfAllInputs (ossimKeywordlist &kwl, bool saveThisStateFlag=true, ossim_uint32 objectIndex=1, const char *prefix=0) const |
Save the state of all inputs to a keyword list. More... | |
virtual bool | fillContainer (ossimConnectableContainer &container) |
Inserts this object and all of its children and inputs into the container provided. More... | |
bool | moveInputUp (const ossimId &id) |
Moves the input connection matching id up one in the connection list. More... | |
bool | moveInputDown (const ossimId &id) |
Moves the input connection matching id down one in the connection list. More... | |
bool | moveInputToTop (const ossimId &id) |
Moves the input connection matching id to the top of the connection list. More... | |
bool | moveInputToBottom (const ossimId &id) |
Moves the input connection matching id to the bottom of the connection list. More... | |
virtual void | accept (ossimVisitor &visitor) |
We will add a visitor interface for all connectable objects. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () 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 | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (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 |
![]() | |
ossimListenerManager () | |
virtual | ~ossimListenerManager () |
virtual void | fireEvent (ossimEvent &event) |
virtual bool | addListener (ossimListener *listener) |
virtual bool | removeListener (ossimListener *listener) |
virtual bool | findListener (ossimListener *listener) |
![]() | |
ossimPropertyInterface () | |
virtual | ~ossimPropertyInterface () |
virtual ossimString | getPropertyValueAsString (const ossimString &name) const |
void | getPropertyList (std::vector< ossimRefPtr< ossimProperty > > &propertyList) const |
void | setProperties (std::vector< ossimRefPtr< ossimProperty > > &propertyList) |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
![]() | |
ossimConnectableObjectListener () | |
virtual | ~ossimConnectableObjectListener () |
virtual void | processEvent (ossimEvent &event) |
ProcessEvent. More... | |
virtual void | objectDestructingEvent (ossimObjectDestructingEvent &) |
virtual void | connectionEvent (ossimConnectionEvent &) |
virtual void | disconnectOutputEvent (ossimConnectionEvent &) |
virtual void | connectOutputEvent (ossimConnectionEvent &) |
virtual void | addObjectEvent (ossimContainerEvent &) |
virtual void | removeObjectEvent (ossimContainerEvent &) |
virtual void | containerEvent (ossimContainerEvent &) |
![]() | |
ossimListener () | |
virtual | ~ossimListener () |
void | enableListener () |
void | disableListener () |
void | setListenerEnableFlag (bool flag) |
bool | isListenerEnabled () const |
bool | getListenerEnableFlag () const |
![]() | |
ossimViewInterface () | |
ossimViewInterface (ossimObject *base) | |
virtual | ~ossimViewInterface () |
virtual void | refreshView () |
ossimObject * | getBaseObject () |
Protected Member Functions | |
void | computeDefaultView () |
void | transformObjectsFromView () |
Uses theViewProjection. More... | |
void | loadPoint (long id, OGRPoint *point, ossimMapProjection *mapProj) |
void | loadMultiPoint (long id, OGRMultiPoint *multiPoint, ossimMapProjection *mapProj) |
void | loadMultiPolygon (long id, OGRMultiPolygon *multiPolygon, ossimMapProjection *mapProj) |
void | loadPolygon (long id, OGRPolygon *polygon, ossimMapProjection *mapProj) |
void | loadLineString (long id, OGRLineString *lineString, ossimMapProjection *mapProj) |
void | loadMultiLineString (long id, OGRMultiLineString *multiLineString, ossimMapProjection *mapProj) |
void | getFeatures (std::list< long > &result, const ossimIrect &rect) |
void | getFeature (vector< ossimAnnotationObject *> &featureList, long id) |
ossimProjection * | createProjFromReference (OGRSpatialReference *reference) const |
void | initializeTables () |
void | deleteTables () |
void | updateAnnotationSettings () |
void | loadExternalGeometryFile () |
Will set theViewProjection if geometry file is present with projection. More... | |
void | loadExternalImageGeometryFromXml () |
Will set theViewProjection if xml file is present with projection. More... | |
void | loadOmdFile () |
Looks for "file.omd" and loads pen, brush and point settings if present. More... | |
void | getDefaults () |
Will set thePenColor and theBrushColor if keyword found in preferences. More... | |
void | verifyViewParams () |
Checks for nan scale and tie point. More... | |
![]() | |
void | allocate (const ossimIrect &rect) |
void | destroy () |
ossimAnnotationSource (const ossimAnnotationSource &rhs) | |
![]() | |
virtual | ~ossimImageSourceFilter () |
![]() | |
ossimImageSource (const ossimImageSource &rhs) | |
const ossimImageSource & | operator= (const ossimImageSource &) |
![]() | |
ossimSource (const ossimSource &rhs) | |
const ossimSource & | operator= (const ossimSource &rhs) |
![]() | |
ossimConnectableObject * | findObjectOfType (ConnectableObjectList *connectableList, ossimVisitor &visitor) |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
ossimListenerManager (const ossimListenerManager &rhs) | |
Additional Inherited Members | |
![]() | |
typedef std::vector< ossimRefPtr< ossimAnnotationObject > > | AnnotationObjectListType |
![]() | |
enum | ossimConnectableObjectDirectionType { CONNECTABLE_DIRECTION_NONE = 0, CONNECTABLE_DIRECTION_INPUT = 1, CONNECTABLE_DIRECTION_OUTPUT = 2 } |
typedef std::vector< ossimRefPtr< ossimConnectableObject > > | ConnectableObjectList |
Definition at line 35 of file ossimGdalOgrVectorAnnotation.h.
ossimGdalOgrVectorAnnotation::ossimGdalOgrVectorAnnotation | ( | ossimImageSource * | inputSource = 0 | ) |
Definition at line 197 of file ossimGdalOgrVectorAnnotation.cpp.
References getDefaults(), ossimDrect::makeNan(), ossimAnnotationSource::setNumberOfBands(), theImageBound, and ossimViewInterface::theObject.
|
virtual |
Definition at line 229 of file ossimGdalOgrVectorAnnotation.cpp.
References close(), and ossimViewInterface::theObject.
|
virtual |
Definition at line 235 of file ossimGdalOgrVectorAnnotation.cpp.
References deleteTables(), theDataSource, theImageGeometry, and ossimRefPtr< T >::valid().
Referenced by ossimOgrGdalTileSource::close(), and ~ossimGdalOgrVectorAnnotation().
|
virtual |
Reimplemented from ossimAnnotationSource.
Definition at line 726 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimDrect::combine(), ossimAnnotationObject::getBoundingRect(), ossimDrect::hasNans(), ossimDrect::makeNan(), PTR_CAST, ossimDrect::stretchOut(), theFeatureCacheTable, and theImageBound.
Referenced by transformObjectsFromView().
|
protected |
Definition at line 683 of file ossimGdalOgrVectorAnnotation.cpp.
References ossim::cosd(), isOpen(), ossimMapProjection::setDecimalDegreesPerPixel(), ossimEquDistCylProjection::setOrigin(), ossimMapProjection::setUlGpt(), theBoundingExtent, theImageGeometry, and ossimRefPtr< T >::valid().
|
protected |
Definition at line 1555 of file ossimGdalOgrVectorAnnotation.cpp.
|
protected |
Definition at line 1520 of file ossimGdalOgrVectorAnnotation.cpp.
References theFeatureCacheTable, theLayerTable, and ossimReferenced::unref().
Referenced by close(), and loadState().
|
virtual |
Reimplemented from ossimAnnotationSource.
Definition at line 760 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimGeoAnnotationPolyObject::draw(), ossimObject::dup(), ossimRefPtr< T >::get(), ossimRgbVector::getB(), getFeature(), getFeatures(), ossimRgbVector::getG(), ossimImageData::getImageRectangle(), ossimRgbVector::getR(), initializeTables(), m_needPenColor, PTR_CAST, ossimGeoAnnotationPolyObject::setColor(), ossimRgbImage::setCurrentImageData(), ossimGeoAnnotationPolyObject::setFillFlag(), ossimGeoAnnotationPolyObject::setThickness(), theFeatureCacheTable, theFillFlag, theImageGeometry, thePenColor, theThickness, ossimRefPtr< T >::valid(), and ossimImageData::validate().
|
virtual |
Will return the bounding rectangle.
Reimplemented from ossimAnnotationSource.
Definition at line 721 of file ossimGdalOgrVectorAnnotation.cpp.
References theImageBound.
Referenced by ossimOgrGdalTileSource::getImageRectangle(), ossimOgrGdalTileSource::getNumberOfLines(), and ossimOgrGdalTileSource::getNumberOfSamples().
|
virtual |
Definition at line 2095 of file ossimGdalOgrVectorAnnotation.cpp.
References theBrushColor.
|
protected |
Will set thePenColor and theBrushColor if keyword found in preferences.
Keyword example: shapefile_normalized_rgb_pen_color: 0.004 1.0 0.004 shapefile_normalized_rgb_brush_color: 0.004 1.0 0.004
Definition at line 2374 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimPreferences::instance().
Referenced by ossimGdalOgrVectorAnnotation().
|
protected |
Definition at line 1543 of file ossimGdalOgrVectorAnnotation.cpp.
References theFeatureCacheTable.
Referenced by drawAnnotations().
|
protected |
Definition at line 1221 of file ossimGdalOgrVectorAnnotation.cpp.
References isOpen(), ossimGpt::latd(), ossimIrect::ll(), ossimImageGeometry::localToWorld(), ossimGpt::lond(), ossimIrect::lr(), max, min, theImageGeometry, theLayersToRenderFlagList, theLayerTable, ossimIrect::ul(), ossimIrect::ur(), and ossimRefPtr< T >::valid().
Referenced by drawAnnotations().
std::multimap< long, ossimAnnotationObject * > ossimGdalOgrVectorAnnotation::getFeatureTable | ( | ) |
Definition at line 2527 of file ossimGdalOgrVectorAnnotation.cpp.
References initializeTables(), and theFeatureCacheTable.
Referenced by ossimOgrGdalTileSource::getFeatureTable().
|
virtual |
Definition at line 248 of file ossimGdalOgrVectorAnnotation.cpp.
References theFilename.
|
virtual |
Definition at line 2110 of file ossimGdalOgrVectorAnnotation.cpp.
References theFillFlag.
|
virtual |
Returns the image geometry object associated with this tile source or NULL if non defined.
The geometry contains full-to-local image transform as well as projection (image-to-world)
Definition at line 678 of file ossimGdalOgrVectorAnnotation.cpp.
References theImageGeometry.
Referenced by ossimOgrGdalTileSource::getInternalImageGeometry().
|
virtual |
Definition at line 2090 of file ossimGdalOgrVectorAnnotation.cpp.
References thePenColor.
|
virtual |
Definition at line 2100 of file ossimGdalOgrVectorAnnotation.cpp.
References thePointWidthHeight, and ossimDpt::x.
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 910 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimKeywordNames::BORDER_SIZE_KW, ossimKeywordNames::BRUSH_COLOR_KW, ossimKeywordNames::FILL_FLAG_KW, ossimImageSourceFilter::getProperty(), getThickness(), ossimNumericProperty::ossimNumericPropertyType_INT, ossimKeywordNames::PEN_COLOR_KW, ossimKeywordNames::POINT_WIDTH_HEIGHT_KW, ossimProperty::setCacheRefreshBit(), ossimProperty::setFullRefreshBit(), ossimNumericProperty::setNumericType(), theBrushColor, theFillFlag, thePenColor, thePointWidthHeight, ossimKeywordNames::THICKNESS_KW, ossimString::toString(), ossimDpt::x, and ossimDpt::y.
Referenced by ossimOgrGdalTileSource::getProperty().
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 962 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimKeywordNames::BORDER_SIZE_KW, ossimKeywordNames::BRUSH_COLOR_KW, ossimKeywordNames::FILL_FLAG_KW, ossimKeywordNames::PEN_COLOR_KW, ossimKeywordNames::POINT_WIDTH_HEIGHT_KW, and ossimKeywordNames::THICKNESS_KW.
Referenced by ossimOgrGdalTileSource::getPropertyNames().
|
virtual |
Definition at line 2136 of file ossimGdalOgrVectorAnnotation.cpp.
References theThickness.
Referenced by getProperty(), and saveState().
|
virtual |
Implements ossimViewInterface.
Definition at line 671 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimRefPtr< T >::get(), and theImageGeometry.
Referenced by ossimOgrGdalTileSource::getView().
|
virtual |
Implements ossimViewInterface.
Definition at line 2075 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimRefPtr< T >::get(), and theImageGeometry.
void ossimGdalOgrVectorAnnotation::initializeBoundingRec | ( | vector< ossimGpt > | points | ) |
Definition at line 597 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimDrect::makeNan(), theBoundingExtent, theImageBound, theImageGeometry, ossimRefPtr< T >::valid(), and ossimImageGeometry::worldToLocal().
|
protected |
Definition at line 1265 of file ossimGdalOgrVectorAnnotation.cpp.
Referenced by drawAnnotations(), getFeatureTable(), loadState(), and transformObjectsFromView().
|
virtual |
Definition at line 2070 of file ossimGdalOgrVectorAnnotation.cpp.
References theDataSource.
Referenced by computeDefaultView(), getFeatures(), and ossimOgrGdalTileSource::isOpen().
|
protected |
Will set theViewProjection if geometry file is present with projection.
Also sets theIsExternalGeomFlag.
Definition at line 2141 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimKeywordlist::addFile(), ossimFilename::exists(), ossimImageGeometry::getProjection(), ossimImageGeometry::loadState(), PTR_CAST, ossimFilename::setExtension(), theFilename, theImageGeometry, and theIsExternalGeomFlag.
|
protected |
Will set theViewProjection if xml file is present with projection.
Also sets theIsExternalGeomFlag.
Definition at line 2183 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimFilename::exists(), ossimRefPtr< T >::get(), ossimFgdcXmlDoc::getProjection(), ossimFilename::noExtension(), ossimFgdcXmlDoc::open(), ossimImageGeometry::setProjection(), theFilename, theImageGeometry, theIsExternalGeomFlag, and ossimRefPtr< T >::valid().
|
protected |
Definition at line 1707 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimGpt::datum(), ossimRefPtr< T >::get(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimImageGeometry::getProjection(), ossimRgbVector::getR(), ossimMapProjection::inverse(), ossimProjection::origin(), theBrushColor, theFeatureCacheTable, theFillFlag, theImageGeometry, thePenColor, theThickness, ossimGeoAnnotationPolyLineObject::transform(), and ossimRefPtr< T >::valid().
|
protected |
Definition at line 1765 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimGpt::datum(), ossimRefPtr< T >::get(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimImageGeometry::getProjection(), ossimRgbVector::getR(), ossimMapProjection::inverse(), ossimProjection::origin(), theBrushColor, theFeatureCacheTable, theFillFlag, theImageGeometry, thePenColor, theThickness, ossimGeoAnnotationPolyLineObject::transform(), and ossimRefPtr< T >::valid().
|
protected |
Definition at line 1884 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimGeoAnnotationMultiEllipseObject::addPoint(), ossimRefPtr< T >::get(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimImageGeometry::getProjection(), ossimRgbVector::getR(), ossimMapProjection::inverse(), ossimProjection::origin(), theBrushColor, theFeatureCacheTable, theFillFlag, theImageGeometry, thePenColor, thePointWidthHeight, theThickness, ossimGeoAnnotationMultiEllipseObject::transform(), and ossimRefPtr< T >::valid().
|
protected |
Definition at line 1943 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimGpt::datum(), ossimRefPtr< T >::get(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimImageGeometry::getProjection(), ossimRgbVector::getR(), ossimMapProjection::inverse(), ossimProjection::origin(), theBrushColor, theFeatureCacheTable, theFillFlag, theImageGeometry, thePenColor, theThickness, ossimGeoAnnotationMultiPolyObject::transform(), and ossimRefPtr< T >::valid().
|
protected |
Looks for "file.omd" and loads pen, brush and point settings if present.
Definition at line 2211 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimKeywordlist::addFile(), ossimKeywordNames::BORDER_SIZE_KW, ossimKeywordNames::BRUSH_COLOR_KW, ossimString::c_str(), ossimFilename::exists(), ossimKeywordlist::find(), ossimUnitConversionTool::getValue(), ossimUnitTypeLut::instance(), OSSIM_DEGREES, OSSIM_UNIT_UNKNOWN, ossimFilename::setExtension(), theBorderSize, theBorderSizeUnits, theBrushColor, theFilename, and ossimString::toDouble().
|
protected |
Definition at line 1834 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimGpt::datum(), ossimRefPtr< T >::get(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimImageGeometry::getProjection(), ossimRgbVector::getR(), ossimMapProjection::inverse(), ossimProjection::origin(), theBrushColor, theFeatureCacheTable, theFillFlag, theImageGeometry, thePenColor, thePointWidthHeight, theThickness, ossimGeoAnnotationEllipseObject::transform(), and ossimRefPtr< T >::valid().
|
protected |
Definition at line 1595 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimGpt::datum(), ossimRefPtr< T >::get(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimImageGeometry::getProjection(), ossimRgbVector::getR(), ossimMapProjection::inverse(), ossimProjection::origin(), ossimGeoAnnotationPolyObject::OSSIM_POLY_INTERIOR_RING, ossimGeoAnnotationPolyObject::setPolyType(), theBrushColor, theFeatureCacheTable, theFillFlag, theImageGeometry, thePenColor, theThickness, ossimGeoAnnotationObject::transform(), ossimGeoAnnotationPolyObject::transform(), and ossimRefPtr< T >::valid().
|
virtual |
Method to the load (recreate) the state of an object from a keyword list. Return true if ok or false on error.
Reimplemented from ossimAnnotationSource.
Definition at line 1055 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimKeywordNames::BORDER_SIZE_KW, ossimKeywordNames::BRUSH_COLOR_KW, ossimString::c_str(), deleteTables(), ossimKeywordNames::FILENAME_KW, ossimKeywordNames::FILL_FLAG_KW, ossimKeywordlist::find(), ossimUnitConversionTool::getValue(), initializeTables(), ossimUnitTypeLut::instance(), ossimAnnotationSource::loadState(), m_needPenColor, open(), OSSIM_DEGREES, OSSIM_UNIT_UNKNOWN, ossimKeywordNames::PEN_COLOR_KW, ossimKeywordNames::POINT_WIDTH_HEIGHT_KW, ossimKeywordNames::QUERY_KW, setQuery(), setThickness(), ossimString::split(), status, theBorderSize, theBorderSizeUnits, theBrushColor, theFillFlag, thePenColor, thePointWidthHeight, ossimKeywordNames::THICKNESS_KW, ossimString::toBool(), and ossimString::toDouble().
Referenced by ossimOgrGdalTileSource::loadState().
|
virtual |
Definition at line 2065 of file ossimGdalOgrVectorAnnotation.cpp.
References theFilename.
Referenced by loadState(), ossimOgrGdalTileSource::open(), setCurrentEntry(), and setQuery().
|
virtual |
Definition at line 265 of file ossimGdalOgrVectorAnnotation.cpp.
|
virtual |
Outputs theErrorStatus as an ossimErrorCode and an ossimString.
Reimplemented from ossimSource.
Definition at line 1178 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimSource::print(), theLayersToRenderFlagList, and theLayerTable.
|
virtual |
Saves the current state of this object.
Reimplemented from ossimAnnotationSource.
Definition at line 974 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimKeywordlist::add(), ossimKeywordNames::BORDER_SIZE_KW, ossimKeywordNames::BRUSH_COLOR_KW, ossimString::c_str(), ossimString::empty(), ossimKeywordNames::FILENAME_KW, ossimKeywordNames::FILL_FLAG_KW, ossimRgbVector::getB(), ossimRgbVector::getG(), ossimRgbVector::getR(), getThickness(), ossimUnitTypeLut::instance(), m_query, ossimKeywordNames::PEN_COLOR_KW, ossimKeywordNames::POINT_WIDTH_HEIGHT_KW, ossimKeywordNames::QUERY_KW, ossimAnnotationSource::saveState(), ossimImageGeometry::saveState(), theBorderSize, theBorderSizeUnits, theBrushColor, theFilename, theFillFlag, theImageGeometry, thePenColor, thePointWidthHeight, ossimKeywordNames::THICKNESS_KW, ossimString::toString(), ossimKeywordNames::UNITS_KW, ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.
Referenced by ossimOgrGdalTileSource::saveState().
|
virtual |
Definition at line 2080 of file ossimGdalOgrVectorAnnotation.cpp.
References theBrushColor.
bool ossimGdalOgrVectorAnnotation::setCurrentEntry | ( | ossim_uint32 | entryIdx | ) |
Definition at line 2536 of file ossimGdalOgrVectorAnnotation.cpp.
References m_layerName, m_layerNames, open(), and theFilename.
Referenced by ossimOgrGdalTileSource::setCurrentEntry().
|
virtual |
Definition at line 2115 of file ossimGdalOgrVectorAnnotation.cpp.
References theFillFlag.
void ossimGdalOgrVectorAnnotation::setGeometryBuffer | ( | ossim_float64 | distance, |
ossimUnitType | type | ||
) |
Definition at line 259 of file ossimGdalOgrVectorAnnotation.cpp.
References distance(), m_geometryDistance, and m_geometryDistanceType.
Referenced by ossimOgrGdalTileSource::setGeometryBuffer().
|
virtual |
Definition at line 2085 of file ossimGdalOgrVectorAnnotation.cpp.
References thePenColor.
|
virtual |
Definition at line 2105 of file ossimGdalOgrVectorAnnotation.cpp.
References thePointWidthHeight.
|
virtual |
Reimplemented from ossimImageSourceFilter.
Definition at line 853 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimKeywordNames::BORDER_SIZE_KW, ossimKeywordNames::BRUSH_COLOR_KW, ossimKeywordNames::FILL_FLAG_KW, ossimKeywordNames::PEN_COLOR_KW, ossimKeywordNames::POINT_WIDTH_HEIGHT_KW, ossimRgbVector::setB(), ossimRgbVector::setG(), ossimImageSourceFilter::setProperty(), ossimRgbVector::setR(), setThickness(), theBrushColor, theFillFlag, thePenColor, thePointWidthHeight, ossimKeywordNames::THICKNESS_KW, ossimString::toBool(), ossimString::toInt32(), updateAnnotationSettings(), ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.
Referenced by ossimOgrGdalTileSource::setProperty().
void ossimGdalOgrVectorAnnotation::setQuery | ( | const ossimString & | query | ) |
Definition at line 253 of file ossimGdalOgrVectorAnnotation.cpp.
References m_query, open(), and theFilename.
Referenced by loadState(), and ossimOgrGdalTileSource::setQuery().
|
virtual |
Definition at line 2120 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimNotify(), ossimNotifyLevel_WARN, and theThickness.
Referenced by loadState(), and setProperty().
|
virtual |
The derived classes should overrid this method and return true or false whether it was able to cast the past in view to a view that it can interface to. So if you are a projective view you might cast to an ossimProjection. The ownsTheView specifies whether or not it owns the passed in view pointer. This will specifiy whether or not the derived classes need to re-allocate the pointer or just delete its old pointer and set it to the passed in pointer.
Implements ossimViewInterface.
Definition at line 631 of file ossimGdalOgrVectorAnnotation.cpp.
References PTR_CAST, ossimImageGeometry::setProjection(), theImageGeometry, and transformObjectsFromView().
Referenced by ossimOgrGdalTileSource::setView().
|
protected |
Uses theViewProjection.
Definition at line 1195 of file ossimGdalOgrVectorAnnotation.cpp.
References computeBoundingRect(), ossimRefPtr< T >::get(), initializeTables(), PTR_CAST, theFeatureCacheTable, theImageGeometry, ossimGeoAnnotationObject::transform(), and ossimRefPtr< T >::valid().
Referenced by setView().
|
protected |
Definition at line 811 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimRefPtr< T >::get(), ossimRgbVector::getB(), ossimRgbVector::getG(), ossimRgbVector::getR(), PTR_CAST, ossimGeoAnnotationMultiPolyObject::setFillFlag(), ossimGeoAnnotationPolyObject::setFillFlag(), ossimGeoAnnotationEllipseObject::setFillFlag(), ossimGeoAnnotationEllipseObject::setWidthHeight(), theBrushColor, theFeatureCacheTable, theFillFlag, theImageGeometry, thePenColor, thePointWidthHeight, theThickness, and ossimGeoAnnotationEllipseObject::transform().
Referenced by setProperty().
|
protected |
Checks for nan scale and tie point.
Sets to some default if nan.
Definition at line 2485 of file ossimGdalOgrVectorAnnotation.cpp.
References ossimMapProjection::getDecimalDegreesPerPixel(), ossimMapProjection::getMetersPerPixel(), ossimImageGeometry::getProjection(), ossimMapProjection::getUlGpt(), ossimDpt::hasNans(), ossimMapProjection::isGeographic(), ossimGpt::isLatNan(), ossimGpt::isLonNan(), PTR_CAST, ossimMapProjection::setDecimalDegreesPerPixel(), ossimMapProjection::setMetersPerPixel(), ossimMapProjection::setUlGpt(), theBoundingExtent, theImageGeometry, and ossimRefPtr< T >::valid().
|
protected |
Definition at line 121 of file ossimGdalOgrVectorAnnotation.h.
Referenced by setGeometryBuffer().
|
protected |
Definition at line 122 of file ossimGdalOgrVectorAnnotation.h.
Referenced by setGeometryBuffer().
|
protected |
Definition at line 123 of file ossimGdalOgrVectorAnnotation.h.
Referenced by setCurrentEntry().
|
protected |
Definition at line 124 of file ossimGdalOgrVectorAnnotation.h.
Referenced by setCurrentEntry().
|
protected |
Definition at line 120 of file ossimGdalOgrVectorAnnotation.h.
Referenced by drawAnnotations(), and loadState().
|
protected |
Definition at line 119 of file ossimGdalOgrVectorAnnotation.h.
Referenced by saveState(), and setQuery().
|
protected |
Definition at line 112 of file ossimGdalOgrVectorAnnotation.h.
Referenced by loadOmdFile(), loadState(), and saveState().
|
protected |
Definition at line 113 of file ossimGdalOgrVectorAnnotation.h.
Referenced by loadOmdFile(), loadState(), and saveState().
|
protected |
Definition at line 103 of file ossimGdalOgrVectorAnnotation.h.
Referenced by computeDefaultView(), initializeBoundingRec(), and verifyViewParams().
|
protected |
Definition at line 108 of file ossimGdalOgrVectorAnnotation.h.
Referenced by getBrushColor(), getProperty(), loadLineString(), loadMultiLineString(), loadMultiPoint(), loadMultiPolygon(), loadOmdFile(), loadPoint(), loadPolygon(), loadState(), saveState(), setBrushColor(), setProperty(), and updateAnnotationSettings().
|
protected |
Definition at line 100 of file ossimGdalOgrVectorAnnotation.h.
|
protected |
Definition at line 101 of file ossimGdalOgrVectorAnnotation.h.
|
protected |
Definition at line 117 of file ossimGdalOgrVectorAnnotation.h.
Referenced by computeBoundingRect(), deleteTables(), drawAnnotations(), getFeature(), getFeatureTable(), loadLineString(), loadMultiLineString(), loadMultiPoint(), loadMultiPolygon(), loadPoint(), loadPolygon(), transformObjectsFromView(), and updateAnnotationSettings().
|
protected |
Definition at line 102 of file ossimGdalOgrVectorAnnotation.h.
Referenced by getFilename(), loadExternalGeometryFile(), loadExternalImageGeometryFromXml(), loadOmdFile(), open(), saveState(), setCurrentEntry(), and setQuery().
|
protected |
Definition at line 109 of file ossimGdalOgrVectorAnnotation.h.
Referenced by drawAnnotations(), getFillFlag(), getProperty(), loadLineString(), loadMultiLineString(), loadMultiPoint(), loadMultiPolygon(), loadPoint(), loadPolygon(), loadState(), saveState(), setFillFlag(), setProperty(), and updateAnnotationSettings().
|
protected |
Definition at line 114 of file ossimGdalOgrVectorAnnotation.h.
Referenced by computeBoundingRect(), getBoundingRect(), initializeBoundingRec(), and ossimGdalOgrVectorAnnotation().
|
protected |
Definition at line 104 of file ossimGdalOgrVectorAnnotation.h.
Referenced by close(), computeDefaultView(), drawAnnotations(), getFeatures(), getImageGeometry(), getView(), initializeBoundingRec(), loadExternalGeometryFile(), loadExternalImageGeometryFromXml(), loadLineString(), loadMultiLineString(), loadMultiPoint(), loadMultiPolygon(), loadPoint(), loadPolygon(), saveState(), setView(), transformObjectsFromView(), updateAnnotationSettings(), and verifyViewParams().
|
protected |
Definition at line 115 of file ossimGdalOgrVectorAnnotation.h.
Referenced by loadExternalGeometryFile(), and loadExternalImageGeometryFromXml().
|
protected |
Definition at line 105 of file ossimGdalOgrVectorAnnotation.h.
Referenced by getFeatures(), and print().
|
protected |
Definition at line 106 of file ossimGdalOgrVectorAnnotation.h.
Referenced by deleteTables(), getFeatures(), and print().
|
protected |
Definition at line 107 of file ossimGdalOgrVectorAnnotation.h.
Referenced by drawAnnotations(), getPenColor(), getProperty(), loadLineString(), loadMultiLineString(), loadMultiPoint(), loadMultiPolygon(), loadPoint(), loadPolygon(), loadState(), saveState(), setPenColor(), setProperty(), and updateAnnotationSettings().
|
protected |
Definition at line 111 of file ossimGdalOgrVectorAnnotation.h.
Referenced by getPointRadius(), getProperty(), loadMultiPoint(), loadPoint(), loadState(), saveState(), setPointRadius(), setProperty(), and updateAnnotationSettings().
|
protected |
Definition at line 110 of file ossimGdalOgrVectorAnnotation.h.
Referenced by drawAnnotations(), getThickness(), loadLineString(), loadMultiLineString(), loadMultiPoint(), loadMultiPolygon(), loadPoint(), loadPolygon(), setThickness(), and updateAnnotationSettings().