class Line2D

This class is designed to handle a 2D line

Inheritance:


Public Fields

[more]Point2D P0
first point supporting the line
[more]Point2D P1
second point supporting the line

Public Methods

[more] constructors
[more]virtual ~Line2D()
destructor
[more]virtual void reset(Point2D P0_, Point2D P1_)
[more]virtual void reset(int x0_, int y0_, int x1_, int y1_)
[more]virtual void saveXFile(XFile* file)
save the line
[more]virtual void loadXFile(XFile* file)
load a line
[more]virtual const char* sprint()
return a line into a string
[more]virtual void draw(Image* image_, Color color_)
draw the line on an image
[more]virtual void xdraw(Display* pDisplay_, Pixmap pixmap_, GC gc_, unsigned long color_, int line_width_ = 1, int line_style_ = LineSolid, bool fill_ = false, int fill_style_ = FillSolid)
draw the object on a X11 display


Inherited from geomObject:

Public Fields

obool verbose


Documentation

This class is designed to handle a 2D line

A Line2D is infinite.

oPoint2D P0
first point supporting the line

oPoint2D P1
second point supporting the line

o constructors

o Line2D()

o Line2D(Point2D P0_, Point2D P1_)

ovirtual ~Line2D()
destructor

ovirtual void reset(Point2D P0_, Point2D P1_)

ovirtual void reset(int x0_, int y0_, int x1_, int y1_)

ovirtual void saveXFile(XFile* file)
save the line

ovirtual void loadXFile(XFile* file)
load a line

ovirtual const char* sprint()
return a line into a string

ovirtual void draw(Image* image_, Color color_)
draw the line on an image

ovirtual void xdraw(Display* pDisplay_, Pixmap pixmap_, GC gc_, unsigned long color_, int line_width_ = 1, int line_style_ = LineSolid, bool fill_ = false, int fill_style_ = FillSolid)
draw the object on a X11 display

line_style_ can be LineSolid, LineOnOffDash or LineDoubleDash fill_style_ can be FillSolid, FillTiled, FillStippled or FillOpaqueStippled


This class has no child classes.
Author:
Sebastien Marcel (marcel@idiap.ch) Dan Sunday (http://www.softsurfer.com/)
Version:
2.0 Wed 28 Jun 2006 05:19:31 PM CEST
Since:
1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.