casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
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
< std::tr1::shared_ptr
< RegionInfo > > * 
generate_dds_centers ()

Protected Attributes

QtMouseToolNames::PointRegionSymbols marker_

Static Protected Attributes

static const int radius

Private Member Functions

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 ( 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.


Member Function Documentation

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 67 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 83 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<std::tr1::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.

Reimplemented from casa::viewer::Region.

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

Reimplemented from casa::viewer::Rectangle.

Definition at line 78 of file Point.h.

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 88 of file Point.h.

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


Member Data Documentation

Definition at line 105 of file Point.h.

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

Definition at line 96 of file Point.h.


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