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);
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;
The SbList class is a template container class for lists.
Definition SbList.h:70
int operator!=(const SbList< Type > &l) const
Definition SbList.h:217
int operator==(const SbList< Type > &l) const
Definition SbList.h:209
The SbVec2f class is a 2 dimensional vector with floating point coordinates.
Definition SbVec2f.h:49
The SbVec2s class is a 2 dimensional vector with short integer coordinates.
Definition SbVec2s.h:51
The SbViewportRegion class is a viewport within a full window.
Definition SbViewportRegion.h:40