Back to index

salome-gui  6.5.0
Functions
GLViewer_Viewer2d.cxx File Reference
#include "GLViewer_Viewer2d.h"
#include "GLViewer_Object.h"
#include "GLViewer_ViewFrame.h"
#include "GLViewer_BaseObjects.h"
#include "GLViewer_CoordSystem.h"
#include "GLViewer_Context.h"
#include "GLViewer_Drawer.h"
#include "GLViewer_Selector2d.h"
#include "GLViewer_ViewPort2d.h"
#include "SUIT_Desktop.h"
#include "SUIT_ViewWindow.h"
#include "SUIT_ViewManager.h"
#include <QMenu>
#include <QRect>
#include <QFile>
#include <QPolygon>
#include <QMouseEvent>
#include <QColorDialog>

Go to the source code of this file.

Functions

void mm2custom (GLViewer_Viewer2d::VectorFileType aType, double &value)

Function Documentation

void mm2custom ( GLViewer_Viewer2d::VectorFileType  aType,
double &  value 
) [inline]

Definition at line 708 of file GLViewer_Viewer2d.cxx.

{
    if( aType==GLViewer_Viewer2d::POST_SCRIPT )
        value*=2.8346; //mm to pt

    else if( aType==GLViewer_Viewer2d::HPGL )
        value*=40;     //mm to plu (there are 40 plues in mm)
#ifdef WIN32
    else if( aType==GLViewer_Viewer2d::ENH_METAFILE )
        value*=100;    //this unit is 1/100 mm
#endif 
}