24 #include <geometry/gtk/hom_vector_drawer.h>
25 #include <geometry/hom_vector.h>
26 #include <geometry/hom_point.h>
86 m_offset =
new HomPoint( *d.m_offset );
108 start =
HomPoint( m_offset->
x(), m_offset->
y() );
109 end =
HomPoint( m_offset->
x() + m_vector->
x(),
110 m_offset->
y() + m_vector->
y() );
115 end =
HomPoint( m_vector->
x(), m_vector->
y() );
118 context->
move_to( start.
x(), start.
y() );
119 context->line_to( end.
x() , end.
y() );
120 context->arc( end.
x(), end.
y(), 0.06, 0.0, 2.0 * M_PI);
virtual float y() const
RO-getter for y.
virtual void draw(Cairo::RefPtr< Cairo::Context > &context)
This method is called by the GeomDrawingArea.
HomVectorDrawer(HomVector &v)
Constructor.
HomPoint & move_to(float x, float y, float z)
Move the point to the given coordiantes.
Drawer for HomVector objects.
virtual float x() const
RO-getter for x.
virtual ~HomVectorDrawer()
Destrcutor.