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;
int operator==(const SbBox2s &b1, const SbBox2s &b2)
Definition: SbBox2s.cpp:432
int operator!=(const SbBox2s &b1, const SbBox2s &b2)
Definition: SbBox2s.cpp:443
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition: SbVec2f.h:36
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition: SbVec2s.h:37
The SbViewportRegion class is a viewport within a full window.
Definition: SbViewportRegion.h:31