casa::viewer::Point Class Reference

All regions are specified in "linear coordinates", not "pixel coordinates". More...

#include <Point.h>

Inheritance diagram for casa::viewer::Point:
casa::viewer::Rectangle casa::viewer::Region casa::viewer::dtorNotifier

List of all members.

Public Member Functions

 ~Point ()
 Point (WorldCanvas *wc, QtRegionDock *d, double x, double y, QtMouseToolNames::PointRegionSymbols sym)
 Point (QtRegionSourceKernel *factory, WorldCanvas *wc, double x, double y, bool hold_signals=false, QtMouseToolNames::PointRegionSymbols sym=QtMouseToolNames::SYM_DOT)
 carry over from QtRegion.
bool setMarker (QtMouseToolNames::PointRegionSymbols sym)
int clickHandle (double, double) const
bool clickWithin (double x, double y) const
region::PointInfo checkPoint (double x, double y) const
 returns point state (Region::PointLocation)
unsigned int mouseMovement (double x, double y, bool other_selected)
 returns mouse movement state
void resize (double, double)
AnnotationBaseannotation () const
bool degenerate () const
 points cannot be degenerate.
region::RegionTypes type () const
 fetch region type.
void releaseSignals ()

Protected Member Functions

virtual void fetch_region_details (region::RegionTypes &type, std::vector< std::pair< int, int > > &pixel_pts, std::vector< std::pair< double, double > > &world_pts) const
void drawRegion (bool)
std::list< SHARED_PTR
< RegionInfo > > * 
generate_dds_centers ()

Protected Attributes

QtMouseToolNames::PointRegionSymbols marker_

Static Protected Attributes

static const int radius

Private Member Functions

virtual bool output_region (ds9writer &out, WorldCanvas *wc, const std::vector< std::pair< double, double > > &pts) const
void draw_arrow (PixelCanvas *, int, int, int, int, int, int)

Detailed Description

All regions are specified in "linear coordinates", not "pixel coordinates".

This is necessary because "linear coordinates" scale with zooming whereas "pixel coordinates" do not. Unfortunately, this means that coordinate transformation is required each time the region is drawn.

Definition at line 51 of file Point.h.


Constructor & Destructor Documentation

casa::viewer::Point::~Point (  ) 
casa::viewer::Point::Point ( WorldCanvas wc,
QtRegionDock d,
double  x,
double  y,
QtMouseToolNames::PointRegionSymbols  sym 
) [inline]

Definition at line 54 of file Point.h.

casa::viewer::Point::Point ( QtRegionSourceKernel factory,
WorldCanvas wc,
double  x,
double  y,
bool  hold_signals = false,
QtMouseToolNames::PointRegionSymbols  sym = QtMouseToolNames::SYM_DOT 
) [inline]

carry over from QtRegion.

.. hopefully, removed soon..\.

Definition at line 60 of file Point.h.

References casa::viewer::Region::mystate, and casa::viewer::QtRegionState::setRegion().


Member Function Documentation

AnnotationBase* casa::viewer::Point::annotation (  )  const

Reimplemented from casa::viewer::Rectangle.

region::PointInfo casa::viewer::Point::checkPoint ( double  x,
double  y 
) const [virtual]

returns point state (Region::PointLocation)

Reimplemented from casa::viewer::Rectangle.

int casa::viewer::Point::clickHandle ( double  ,
double   
) const [inline]

Reimplemented from casa::viewer::Rectangle.

Definition at line 69 of file Point.h.

bool casa::viewer::Point::clickWithin ( double  x,
double  y 
) const

Reimplemented from casa::viewer::Rectangle.

bool casa::viewer::Point::degenerate (  )  const [inline, virtual]

points cannot be degenerate.

.\.

Reimplemented from casa::viewer::Region.

Definition at line 85 of file Point.h.

void casa::viewer::Point::draw_arrow ( PixelCanvas ,
int  ,
int  ,
int  ,
int  ,
int  ,
int   
) [private]
void casa::viewer::Point::drawRegion ( bool   )  [protected, virtual]

Reimplemented from casa::viewer::Rectangle.

virtual void casa::viewer::Point::fetch_region_details ( region::RegionTypes type,
std::vector< std::pair< int, int > > &  pixel_pts,
std::vector< std::pair< double, double > > &  world_pts 
) const [protected, virtual]

Reimplemented from casa::viewer::Rectangle.

std::list<SHARED_PTR<RegionInfo> >* casa::viewer::Point::generate_dds_centers (  )  [protected, virtual]

Reimplemented from casa::viewer::Rectangle.

unsigned int casa::viewer::Point::mouseMovement ( double  x,
double  y,
bool  other_selected 
)

returns mouse movement state

Reimplemented from casa::viewer::Rectangle.

virtual bool casa::viewer::Point::output_region ( ds9writer out,
WorldCanvas wc,
const std::vector< std::pair< double, double > > &  pts 
) const [private, virtual]

Reimplemented from casa::viewer::Rectangle.

void casa::viewer::Point::releaseSignals (  )  [virtual]

Reimplemented from casa::viewer::Region.

void casa::viewer::Point::resize ( double  ,
double   
) [inline]

Reimplemented from casa::viewer::Rectangle.

Definition at line 80 of file Point.h.

bool casa::viewer::Point::setMarker ( QtMouseToolNames::PointRegionSymbols  sym  )  [virtual]

Reimplemented from casa::viewer::Region.

region::RegionTypes casa::viewer::Point::type (  )  const [inline, virtual]

fetch region type.

.\.

Reimplemented from casa::viewer::Rectangle.

Definition at line 90 of file Point.h.

References casa::viewer::region::PointRegion.


Member Data Documentation

Definition at line 107 of file Point.h.

const int casa::viewer::Point::radius [static, protected]

Definition at line 98 of file Point.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1