OTB  6.7.0
Orfeo Toolbox
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::GlVectorActor Class Reference

#include <otbGlVectorActor.h>

+ Inheritance diagram for otb::GlVectorActor:
+ Collaboration diagram for otb::GlVectorActor:

Classes

class  InternalFeature
 

Public Types

typedef itk::Vector< double, 3 > ColorType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef
RSTransformType::InputPointType 
PointType
 
typedef
itk::CenteredRigid2DTransform 
RigidTransformType
 
typedef otb::GenericRSTransform RSTransformType
 
typedef GlVectorActor Self
 
typedef GlActor Superclass
 
- Public Types inherited from otb::GlActor
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef GlActor Self
 
typedef itk::Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 
- Public Types inherited from otb::GeoInterface
typedef itk::Point
< itk::SpacePrecisionType, 2 > 
Point2
 
typedef itk::Point< double, 2 > Point2d
 
typedef itk::Vector
< itk::SpacePrecisionType, 2 > 
Spacing2
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual void FillOff ()
 
virtual void FillOn ()
 
virtual const double & GetAlpha () const
 
std::vector< std::string > GetAvailableLayers () const
 
void GetBoundingBox (double &ulx, double &uly, double &lrx, double &lry) const
 
virtual const ColorTypeGetColor () const
 
std::string GetCurrentLayer () const
 
void GetExtent (double &ulx, double &uly, double &lrx, double &lry) const override
 
virtual bool GetFill ()
 
virtual const double & GetLineWidth () const
 
virtual bool GetOptimizedRendering ()
 
virtual bool GetOptimizedRenderingActive ()
 
virtual bool GetSolidBorder ()
 
std::string GetWkt () const override
 
void Initialize (const std::string &filename, const std::string &layername="")
 
virtual void OptimizedRenderingOff ()
 
virtual void OptimizedRenderingOn ()
 
void ProcessViewSettings () override
 
void Render () override
 
virtual void SetAlpha (double _arg)
 
virtual void SetColor (ColorType _arg)
 
void SetCurrentLayer (const std::string &layername)
 
void SetFill (bool flag)
 
virtual void SetLineWidth (double _arg)
 
void SetOptimizedRendering (bool flag)
 
void SetSolidBorder (bool flag)
 
virtual void SolidBorderOff ()
 
virtual void SolidBorderOn ()
 
bool TransformFromViewport (Point2d &out, const Point2d &in, bool isPhysical=true) const override
 
void UpdateData () override
 
PointType ViewportToVectorTransform (const PointType &point) const
 
- Public Member Functions inherited from otb::GlActor
virtual void GeometryChangedOff ()
 
virtual void GeometryChangedOn ()
 
virtual bool GetGeometryChanged ()
 
virtual const char * GetName () const
 
virtual bool GetOverlay ()
 
virtual const ViewSettingsGetSettings () const
 
virtual bool GetVisible ()
 
 itkGetObjectMacro (Settings, ViewSettings)
 
virtual void OverlayOff ()
 
virtual void OverlayOn ()
 
virtual void SetGeometryChanged (bool _arg)
 
virtual void SetName (const char *_arg)
 
virtual void SetOverlay (bool _arg)
 
virtual void SetSettings (ViewSettings *_arg)
 
virtual void SetVisible (bool _arg)
 
virtual void VisibleOff ()
 
virtual void VisibleOn ()
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
virtual ModifiedTimeType GetMTime () const
 
virtual const char * GetNameOfClass () const
 
virtual const std::string & GetObjectName () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 
- Public Member Functions inherited from otb::GeoInterface
virtual bool GetKwl (ImageKeywordlist &) const
 
virtual const Spacing2GetSpacing () const
 
virtual bool HasKwl () const
 
virtual bool TransformToViewport (Point2d &out, const Point2d &in, bool isPhysical=true) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

 GlVectorActor ()
 
 ~GlVectorActor () override
 
- Protected Member Functions inherited from otb::GlActor
 GlActor ()
 
 ~GlActor () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 
- Protected Member Functions inherited from otb::GeoInterface
 GeoInterface ()
 
virtual ~GeoInterface ()
 

Private Member Functions

 GlVectorActor (const Self &)
 
void InternalFeaturesTransform ()
 
void operator= (const Self &)
 
void UpdateDisplayList ()
 
void UpdateTransforms ()
 

Private Attributes

double m_Alpha
 
ColorType m_Color
 
std::string m_CurrentLayer
 
unsigned int m_DisplayList
 
bool m_DisplayListNeedsRebuild
 
double m_ExtentLRX
 
double m_ExtentLRY
 
double m_ExtentULX
 
double m_ExtentULY
 
bool m_Fill
 
GLUtesselator * m_GluTesselator
 
std::vector< InternalFeaturem_InternalFeatures
 
double m_LineWidth
 
otb::ogr::DataSource::Pointer m_OGRDataSource
 
bool m_OptimizedRendering
 
bool m_OptimizedRenderingActive
 
unsigned int m_PointMarkerSize
 
bool m_SolidBorder
 
RSTransformType::Pointer m_VectorToViewportTransform
 
RigidTransformType::Pointer m_ViewportBackwardRotationTransform
 
RigidTransformType::Pointer m_ViewportForwardRotationTransform
 
RSTransformType::Pointer m_ViewportToVectorTransform
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Detailed Description

Definition at line 43 of file otbGlVectorActor.h.

Member Typedef Documentation

Definition at line 53 of file otbGlVectorActor.h.

Definition at line 50 of file otbGlVectorActor.h.

Definition at line 49 of file otbGlVectorActor.h.

Definition at line 52 of file otbGlVectorActor.h.

Definition at line 54 of file otbGlVectorActor.h.

Definition at line 51 of file otbGlVectorActor.h.

Definition at line 47 of file otbGlVectorActor.h.

Definition at line 48 of file otbGlVectorActor.h.

Constructor & Destructor Documentation

otb::GlVectorActor::GlVectorActor ( )
protected
otb::GlVectorActor::~GlVectorActor ( )
overrideprotected
otb::GlVectorActor::GlVectorActor ( const Self )
private

Member Function Documentation

virtual::itk::LightObject::Pointer otb::GlVectorActor::CreateAnother ( void  ) const
virtual

Reimplemented from itk::Object.

virtual void otb::GlVectorActor::FillOff ( )
virtual
virtual void otb::GlVectorActor::FillOn ( )
virtual
virtual const double& otb::GlVectorActor::GetAlpha ( ) const
virtual
std::vector<std::string> otb::GlVectorActor::GetAvailableLayers ( ) const
void otb::GlVectorActor::GetBoundingBox ( double &  ulx,
double &  uly,
double &  lrx,
double &  lry 
) const
virtual const ColorType& otb::GlVectorActor::GetColor ( ) const
virtual
std::string otb::GlVectorActor::GetCurrentLayer ( ) const
void otb::GlVectorActor::GetExtent ( double &  ulx,
double &  uly,
double &  lrx,
double &  lry 
) const
overridevirtual

Implements otb::GlActor.

virtual bool otb::GlVectorActor::GetFill ( )
virtual
virtual const double& otb::GlVectorActor::GetLineWidth ( ) const
virtual
virtual bool otb::GlVectorActor::GetOptimizedRendering ( )
virtual
virtual bool otb::GlVectorActor::GetOptimizedRenderingActive ( )
virtual
virtual bool otb::GlVectorActor::GetSolidBorder ( )
virtual
std::string otb::GlVectorActor::GetWkt ( ) const
overridevirtual

Reimplemented from otb::GeoInterface.

void otb::GlVectorActor::Initialize ( const std::string &  filename,
const std::string &  layername = "" 
)
void otb::GlVectorActor::InternalFeaturesTransform ( )
private
static Pointer otb::GlVectorActor::New ( )
static
void otb::GlVectorActor::operator= ( const Self )
private
virtual void otb::GlVectorActor::OptimizedRenderingOff ( )
virtual
virtual void otb::GlVectorActor::OptimizedRenderingOn ( )
virtual
void otb::GlVectorActor::ProcessViewSettings ( )
overridevirtual

Implements otb::GlActor.

void otb::GlVectorActor::Render ( )
overridevirtual

Implements otb::GlActor.

virtual void otb::GlVectorActor::SetAlpha ( double  _arg)
virtual
virtual void otb::GlVectorActor::SetColor ( ColorType  _arg)
virtual
void otb::GlVectorActor::SetCurrentLayer ( const std::string &  layername)
void otb::GlVectorActor::SetFill ( bool  flag)
virtual void otb::GlVectorActor::SetLineWidth ( double  _arg)
virtual
void otb::GlVectorActor::SetOptimizedRendering ( bool  flag)
void otb::GlVectorActor::SetSolidBorder ( bool  flag)
virtual void otb::GlVectorActor::SolidBorderOff ( )
virtual
virtual void otb::GlVectorActor::SolidBorderOn ( )
virtual
bool otb::GlVectorActor::TransformFromViewport ( Point2d out,
const Point2d in,
bool  isPhysical = true 
) const
overridevirtual

Transform given point from viewport coordinate-system to this actor coordinate-system.

By default this method return false. It should be implemented in derived classes if needed.

Parameters
outThe transformed point (in this actor coordinate-system).
inThe given point (in viewport coordinate-system).
isPhysicalIndicate physical coordates are desired.
Returns
true if the operation has succeeded; false otherwise.

Reimplemented from otb::GeoInterface.

void otb::GlVectorActor::UpdateData ( )
overridevirtual

Implements otb::GlActor.

void otb::GlVectorActor::UpdateDisplayList ( )
private
void otb::GlVectorActor::UpdateTransforms ( )
private
PointType otb::GlVectorActor::ViewportToVectorTransform ( const PointType point) const

Member Data Documentation

double otb::GlVectorActor::m_Alpha
private

Definition at line 152 of file otbGlVectorActor.h.

ColorType otb::GlVectorActor::m_Color
private

Definition at line 151 of file otbGlVectorActor.h.

std::string otb::GlVectorActor::m_CurrentLayer
private

Definition at line 161 of file otbGlVectorActor.h.

unsigned int otb::GlVectorActor::m_DisplayList
private

Definition at line 167 of file otbGlVectorActor.h.

bool otb::GlVectorActor::m_DisplayListNeedsRebuild
private

Definition at line 168 of file otbGlVectorActor.h.

double otb::GlVectorActor::m_ExtentLRX
private

Definition at line 172 of file otbGlVectorActor.h.

double otb::GlVectorActor::m_ExtentLRY
private

Definition at line 173 of file otbGlVectorActor.h.

double otb::GlVectorActor::m_ExtentULX
private

Definition at line 170 of file otbGlVectorActor.h.

double otb::GlVectorActor::m_ExtentULY
private

Definition at line 171 of file otbGlVectorActor.h.

bool otb::GlVectorActor::m_Fill
private

Definition at line 153 of file otbGlVectorActor.h.

GLUtesselator* otb::GlVectorActor::m_GluTesselator
private

Definition at line 165 of file otbGlVectorActor.h.

std::vector<InternalFeature> otb::GlVectorActor::m_InternalFeatures
private

Definition at line 163 of file otbGlVectorActor.h.

double otb::GlVectorActor::m_LineWidth
private

Definition at line 155 of file otbGlVectorActor.h.

otb::ogr::DataSource::Pointer otb::GlVectorActor::m_OGRDataSource
private

Definition at line 160 of file otbGlVectorActor.h.

bool otb::GlVectorActor::m_OptimizedRendering
private

Definition at line 175 of file otbGlVectorActor.h.

bool otb::GlVectorActor::m_OptimizedRenderingActive
private

Definition at line 176 of file otbGlVectorActor.h.

unsigned int otb::GlVectorActor::m_PointMarkerSize
private

Definition at line 178 of file otbGlVectorActor.h.

bool otb::GlVectorActor::m_SolidBorder
private

Definition at line 154 of file otbGlVectorActor.h.

RSTransformType::Pointer otb::GlVectorActor::m_VectorToViewportTransform
private

Definition at line 158 of file otbGlVectorActor.h.

RigidTransformType::Pointer otb::GlVectorActor::m_ViewportBackwardRotationTransform
private

Definition at line 181 of file otbGlVectorActor.h.

RigidTransformType::Pointer otb::GlVectorActor::m_ViewportForwardRotationTransform
private

Definition at line 180 of file otbGlVectorActor.h.

RSTransformType::Pointer otb::GlVectorActor::m_ViewportToVectorTransform
private

Definition at line 157 of file otbGlVectorActor.h.


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