Itasca C++ Interface
Loading...
Searching...
No Matches
igeneralplot.h
Go to the documentation of this file.
1#pragma once
2
3#include "dim.h"
4
10namespace itasca {
11 class IFish;
12}
13
14namespace itascaxd {
16
21 public:
23 virtual void addCircle(bool solid,const DVect &cent, const double & rad)=0;
25 virtual void addSphere(bool solid,const DVect &cent, const double & rad)=0;
27 virtual void addLine(const DVect &p1, const DVect &p2)=0;
29 virtual void addPoly(bool solid,const QVector<DVect> & points,bool cl)=0;
31 virtual void adDExtent2(bool solid,const DExtent2 &r)=0;
33 virtual void addString(const DVect &v, const QString &s)=0;
35 virtual void addMoveTo(const DVect &p1)=0;
37 virtual void addLineTo(const DVect &p1)=0;
39 virtual void setColor(int c)=0;
42 virtual void setColor(const QString & c)=0;
44 virtual void setDashPattern(int lp)=0;
46 virtual void setLineWidth(int w)=0;
48 virtual void setFontData(const double & fz)=0;
50 virtual void setTransparencyFactor(int c)=0;
51 };
52} // namespace itascaxd
53// EoF
This class allows user to draw basic geometric plots using FISH functions.
Definition igeneralplot.h:20
virtual void addLineTo(const DVect &p1)=0
Draw a line (used in conjuction with function addMoveTo)
virtual void addSphere(bool solid, const DVect &cent, const double &rad)=0
Draw a sphere with a given center and radius.
virtual void setDashPattern(int lp)=0
Set dash patterns for lines. Zero is solid.
virtual void addCircle(bool solid, const DVect &cent, const double &rad)=0
Draw a circle with a given center and radius.
virtual void setTransparencyFactor(int c)=0
Set transparency. Zero is opaque. Valid values between 0 and 100.
virtual void setColor(int c)=0
Set the current plot color. Objects draw after this command will be created with this color.
virtual void addString(const DVect &v, const QString &s)=0
Write out a string on a given coordinate (point v).
virtual void addLine(const DVect &p1, const DVect &p2)=0
Draw a line beteween two points.
virtual void setLineWidth(int w)=0
Set line width.
virtual void addPoly(bool solid, const QVector< DVect > &points, bool cl)=0
Draw a polygon. Points are stored on vector 'points'.
virtual void adDExtent2(bool solid, const DExtent2 &r)=0
Draw a rectangle.
virtual void setFontData(const double &fz)=0
Set font size.
virtual void addMoveTo(const DVect &p1)=0
Move to a point in the screen coordinates.
virtual void setColor(const QString &c)=0
DIM - Provides code portability between 2D and 3D codes.
DVect3 DVect
Vector of doubles, either 2D or 3D.
Definition dim.h:154
namespace Itasca
Definition basememory.cpp:10
Itasca Library standard namespace, specific to 2D or 3D.
Definition icontactmodule.h:4