1 #ifndef COIN_SBVIEWPORTREGION_H
2 #define COIN_SBVIEWPORTREGION_H
28 #include <Inventor/SbVec2s.h>
29 #include <Inventor/SbVec2f.h>
38 void setWindowSize(
short width,
short height);
39 void setWindowSize(
SbVec2s winSize);
40 void setViewport(
float left,
float bottom,
41 float width,
float height);
43 void setViewportPixels(
short left,
short bottom,
44 short width,
short height);
46 const SbVec2s & getWindowSize(
void)
const;
47 const SbVec2f & getViewportOrigin(
void)
const;
48 const SbVec2s & getViewportOriginPixels(
void)
const;
49 const SbVec2f & getViewportSize(
void)
const;
50 const SbVec2s & getViewportSizePixels(
void)
const;
51 float getViewportAspectRatio(
void)
const;
52 void scaleWidth(
float ratio);
53 void scaleHeight(
float ratio);
54 void setPixelsPerInch(
float ppi);
55 float getPixelsPerInch(
void)
const;
56 float getPixelsPerPoint(
void)
const;
63 void print(FILE * file)
const;
77 #endif // !COIN_SBVIEWPORTREGION_H
The SbVec2f class is a 2 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec2f.h:39
int operator!=(const SbBox2d &b1, const SbBox2d &b2)
Definition: SbBox2d.h:92
int operator==(const SbBox2d &b1, const SbBox2d &b2)
Definition: SbBox2d.h:88
The SbViewportRegion class is a viewport within a full window.The SbViewportRegion class contains inf...
Definition: SbViewportRegion.h:31
The SbVec2s class is a 2 dimensional vector with short integer coordinates.This vector class is used ...
Definition: SbVec2s.h:41