Back to index

salome-gui  6.5.0
Defines | Functions | Variables
GLViewer_ViewPort2d.cxx File Reference
#include "GLViewer_ViewPort2d.h"
#include "GLViewer_Viewer2d.h"
#include "GLViewer_ViewFrame.h"
#include "GLViewer_MimeData.h"
#include "GLViewer_Context.h"
#include "GLViewer_Compass.h"
#include "GLViewer_Grid.h"
#include "GLViewer_Drawer.h"
#include <QHBoxLayout>
#include <QMouseEvent>
#include <QRect>
#include <QApplication>
#include <QClipboard>
#include <QBitmap>
#include <QLabel>
#include <QWidget>
#include <QRubberBand>

Go to the source code of this file.

Defines

#define WIDTH   640
#define HEIGHT   480
#define MARGIN   100
#define GRID_XSIZE   100
#define GRID_YSIZE   100

Functions

void rotate_point (float &theX, float &theY, float theAngle)

Variables

static int aLastViewPostId = 0

Define Documentation

#define GRID_XSIZE   100

Definition at line 58 of file GLViewer_ViewPort2d.cxx.

#define GRID_YSIZE   100

Definition at line 59 of file GLViewer_ViewPort2d.cxx.

#define HEIGHT   480

Definition at line 55 of file GLViewer_ViewPort2d.cxx.

#define MARGIN   100

Definition at line 56 of file GLViewer_ViewPort2d.cxx.

#define WIDTH   640

Definition at line 54 of file GLViewer_ViewPort2d.cxx.


Function Documentation

void rotate_point ( float &  theX,
float &  theY,
float  theAngle 
)

Definition at line 63 of file GLViewer_ViewPort2d.cxx.

{
    float aTempX = theX * cos(theAngle) - theY * sin(theAngle);
    float aTempY = theX * sin(theAngle) + theY * cos(theAngle);
    theX = aTempX;
    theY = aTempY;
}

Here is the caller graph for this function:


Variable Documentation

int aLastViewPostId = 0 [static]

Definition at line 61 of file GLViewer_ViewPort2d.cxx.