Version: 6.3.1
Defines | Functions

src/GLViewer/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>
Include dependency graph for GLViewer_BaseObjects.cxx:

Defines

#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)

Define Documentation

#define SECTIONS   100
#define DISTANTION   5

Function Documentation

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().

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 TestSalomeApp.command, and GLViewer_CoordSystem.transform().

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().

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS