1 #ifndef COIN_SBVIEWPORTREGION_H 2 #define COIN_SBVIEWPORTREGION_H 37 #include <Inventor/SbVec2s.h> 38 #include <Inventor/SbVec2f.h> 47 void setWindowSize(
short width,
short height);
48 void setWindowSize(
SbVec2s winSize);
49 void setViewport(
float left,
float bottom,
50 float width,
float height);
52 void setViewportPixels(
short left,
short bottom,
53 short width,
short height);
55 const SbVec2s & getWindowSize(
void)
const;
56 const SbVec2f & getViewportOrigin(
void)
const;
57 const SbVec2s & getViewportOriginPixels(
void)
const;
58 const SbVec2f & getViewportSize(
void)
const;
59 const SbVec2s & getViewportSizePixels(
void)
const;
60 float getViewportAspectRatio(
void)
const;
61 void scaleWidth(
float ratio);
62 void scaleHeight(
float ratio);
63 void setPixelsPerInch(
float ppi);
64 float getPixelsPerInch(
void)
const;
65 float getPixelsPerPoint(
void)
const;
72 void print(FILE * file)
const;
86 #endif // !COIN_SBVIEWPORTREGION_H The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:49
int operator==(const SbBox2s &b1, const SbBox2s &b2)
Definition: SbBox2s.h:102
int operator!=(const SbBox2s &b1, const SbBox2s &b2)
Definition: SbBox2s.h:106
The SbViewportRegion class is a viewport within a full window.
Definition: SbViewportRegion.h:40
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition: SbVec2s.h:51