This class represents the Diophantine functions drawn on DGVLatticeVTK classes using VTK for display. EXPERIMENTAL. More...
#include <DGVDiophantineVTK.h>
Public Member Functions | |
DGVDiophantineVTK (QWidget *parent=0) | |
virtual | ~DGVDiophantineVTK () |
void | setLattice (DGVLatticeVTK *lattice) |
void | setCoefficients (DiophantineType x, DiophantineType y, DiophantineType z) |
void | setPointOnLine (DiophantineType x, DiophantineType y, DiophantineType z) |
void | setStartPoint (Array< DiophantineType, 1 > &point) |
void | setStartPoint (DiophantineType x, DiophantineType y) |
void | setEndPoint (Array< DiophantineType, 1 > &point) |
void | setEndPoint (DiophantineType u, DiophantineType v) |
void | setColour (double red, double green, double blue) |
vtkActor * | getLineActor () |
DGVLatticeVTK * | loadFile (QString filename) |
void | generateLine () |
Protected Attributes | |
DGVLatticeVTK * | gamma |
Fundamental Lattice Gamma. | |
DiophantineType | xCoefficient |
DiophantineType | yCoefficient |
DiophantineType | zCoefficient |
Array< DiophantineType, 1 > | pointOnLine |
Point on the line (coordinate). | |
Array< double, 1 > | start |
Array< double, 1 > | end |
DiophantineType | intercept |
bool | latticeSet |
bool | generatedBefore |
bool | manual |
Has the end points been set manually? | |
vtkLineSource * | line |
Line form. | |
vtkPolyDataMapper * | mapper |
Map of the line. | |
vtkActor * | actor |
Actor for the line. | |
vtkProperty * | displayProperties |
Display properties of the line. |
This class represents the Diophantine functions drawn on DGVLatticeVTK classes using VTK for display. EXPERIMENTAL.
Diophantine File Format:
#Primary Lattice Size and then colour (rgb) #"xSize ySize r g b" 13 13 0 0 0 #Secondary Lattice Size and then colour (rgb) #"xSize ySize r g b" 13 13 0 0 0 #Background colour (rgb). Negative colours will use default #"r g b" 255 255 255 #Parameters for lines or points #Define lines as point on line (x,y) and then colour (rgb) #and then gradient (p,q). #If no gradient is provided then the #parameters are taken to be defining a point and its colour #Define a vector by points (x,y) and (u,v) #Redefine colour for vectors with a triple (r,g,b) #All Points are taken with respect to the secondary lattice #"x y r g b p q" #or "x y r g b" #or "x y u v" #or "r g b" 4 4 256 0 0 1 1
Definition at line 65 of file DGVDiophantineVTK.h.
DGVDiophantineVTK::DGVDiophantineVTK | ( | QWidget * | parent = 0 |
) |
Definition at line 28 of file DGVDiophantineVTK.cpp.
DGVDiophantineVTK::~DGVDiophantineVTK | ( | ) | [virtual] |
Definition at line 42 of file DGVDiophantineVTK.cpp.
void DGVDiophantineVTK::generateLine | ( | ) |
Determine bounds for the line within the lattice
For vectors, start and end already set
Definition at line 295 of file DGVDiophantineVTK.cpp.
vtkActor* DGVDiophantineVTK::getLineActor | ( | ) | [inline] |
Definition at line 80 of file DGVDiophantineVTK.h.
DGVLatticeVTK * DGVDiophantineVTK::loadFile | ( | QString | filename | ) |
Read settings file
Ignore Comments
Read Primary Lattice
Ignore Comments
Read Secondary Lattice
Ignore Comments
Read Background Colour
Display lines
Ignore Comments
Read Lines and Points
Definition at line 133 of file DGVDiophantineVTK.cpp.
void DGVDiophantineVTK::setCoefficients | ( | DiophantineType | x, | |
DiophantineType | y, | |||
DiophantineType | z | |||
) |
Definition at line 65 of file DGVDiophantineVTK.cpp.
void DGVDiophantineVTK::setColour | ( | double | red, | |
double | green, | |||
double | blue | |||
) |
Definition at line 128 of file DGVDiophantineVTK.cpp.
void DGVDiophantineVTK::setEndPoint | ( | DiophantineType | u, | |
DiophantineType | v | |||
) |
Definition at line 115 of file DGVDiophantineVTK.cpp.
void DGVDiophantineVTK::setEndPoint | ( | Array< DiophantineType, 1 > & | point | ) |
Definition at line 106 of file DGVDiophantineVTK.cpp.
void DGVDiophantineVTK::setLattice | ( | DGVLatticeVTK * | lattice | ) |
Definition at line 53 of file DGVDiophantineVTK.cpp.
void DGVDiophantineVTK::setPointOnLine | ( | DiophantineType | x, | |
DiophantineType | y, | |||
DiophantineType | z | |||
) |
c = by - ax
Definition at line 73 of file DGVDiophantineVTK.cpp.
void DGVDiophantineVTK::setStartPoint | ( | Array< DiophantineType, 1 > & | point | ) |
Definition at line 84 of file DGVDiophantineVTK.cpp.
void DGVDiophantineVTK::setStartPoint | ( | DiophantineType | x, | |
DiophantineType | y | |||
) |
Definition at line 93 of file DGVDiophantineVTK.cpp.
vtkActor* DGVDiophantineVTK::actor [protected] |
Actor for the line.
Definition at line 101 of file DGVDiophantineVTK.h.
vtkProperty* DGVDiophantineVTK::displayProperties [protected] |
Display properties of the line.
Definition at line 102 of file DGVDiophantineVTK.h.
Array<double,1> DGVDiophantineVTK::end [protected] |
Definition at line 93 of file DGVDiophantineVTK.h.
DGVLatticeVTK* DGVDiophantineVTK::gamma [protected] |
Fundamental Lattice Gamma.
Definition at line 87 of file DGVDiophantineVTK.h.
bool DGVDiophantineVTK::generatedBefore [protected] |
Definition at line 96 of file DGVDiophantineVTK.h.
DiophantineType DGVDiophantineVTK::intercept [protected] |
Definition at line 94 of file DGVDiophantineVTK.h.
bool DGVDiophantineVTK::latticeSet [protected] |
Definition at line 95 of file DGVDiophantineVTK.h.
vtkLineSource* DGVDiophantineVTK::line [protected] |
Line form.
Definition at line 99 of file DGVDiophantineVTK.h.
bool DGVDiophantineVTK::manual [protected] |
Has the end points been set manually?
Definition at line 97 of file DGVDiophantineVTK.h.
vtkPolyDataMapper* DGVDiophantineVTK::mapper [protected] |
Map of the line.
Definition at line 100 of file DGVDiophantineVTK.h.
Array<DiophantineType,1> DGVDiophantineVTK::pointOnLine [protected] |
Point on the line (coordinate).
Definition at line 91 of file DGVDiophantineVTK.h.
Array<double,1> DGVDiophantineVTK::start [protected] |
Definition at line 92 of file DGVDiophantineVTK.h.
DiophantineType DGVDiophantineVTK::xCoefficient [protected] |
Definition at line 88 of file DGVDiophantineVTK.h.
DiophantineType DGVDiophantineVTK::yCoefficient [protected] |
Definition at line 89 of file DGVDiophantineVTK.h.
DiophantineType DGVDiophantineVTK::zCoefficient [protected] |
Definition at line 90 of file DGVDiophantineVTK.h.