Version: 9.12.0
GLViewer_BaseObjects.cxx File Reference
#include "GLViewer_BaseObjects.h"
#include "GLViewer_BaseDrawers.h"
#include "GLViewer_AspectLine.h"
#include "GLViewer_CoordSystem.h"
#include "GLViewer_Text.h"
#include "GLViewer_Group.h"
#include "GLViewer_Drawer.h"
#include <QFile>

Macros

#define SECTIONS   100
 
#define DISTANTION   5
 

Functions

void AddCoordsToHPGL (QString &buffer, QString command, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aPaperCS, double x, double y, bool NewLine=true)
 
void AddCoordsToPS (QString &buffer, QString command, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aPaperCS, double x, double y, bool NewLine=true)
 
void AddLineAspectToPS (QString &buffer, GLViewer_AspectLine *anAspect, GLViewer_CoordSystem *aViewerCS, GLViewer_CoordSystem *aPaperCS)
 

Macro Definition Documentation

◆ DISTANTION

#define DISTANTION   5

◆ SECTIONS

#define SECTIONS   100

Function Documentation

◆ AddCoordsToHPGL()

void AddCoordsToHPGL ( QString &  buffer,
QString  command,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aPaperCS,
double  x,
double  y,
bool  NewLine = true 
)

Adds coords to text buffer in HPGL format

Parameters
buffer- text buffer
command- command to be added with coords
aViewerCS- viewer co-ordinates system
aPaperCS- paper co-ordinates system
x- x co-ordinate
y- y co-ordinate
NewLine- adds new line to buffer

References GLViewer_CoordSystem::transform().

◆ AddCoordsToPS()

void AddCoordsToPS ( QString &  buffer,
QString  command,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aPaperCS,
double  x,
double  y,
bool  NewLine = true 
)

Adds coords to text buffer in PostScript format

Parameters
buffer- text buffer
command- command to be added with coords
aViewerCS- viewer co-ordinates system
aPaperCS- paper co-ordinates system
x- x co-ordinate
y- y co-ordinate
NewLine- adds new line to buffer

References GLViewer_CoordSystem::transform().

◆ AddLineAspectToPS()

void AddLineAspectToPS ( QString &  buffer,
GLViewer_AspectLine anAspect,
GLViewer_CoordSystem aViewerCS,
GLViewer_CoordSystem aPaperCS 
)

Adds line aspect description to text buffer in PostScript format

Parameters
buffer- text buffer
anAspect- line aspect
aViewerCS- viewer co-ordinates system
aPaperCS- paper co-ordinates system

References GLViewer_AspectLine::getLineColors(), GLViewer_AspectLine::getLineType(), GLViewer_AspectLine::getLineWidth(), and GLViewer_CoordSystem::getStretching().