Public Member Functions | Private Member Functions | Private Attributes | List of all members
SDLwindow Class Reference

#include <SDLUtil.h>

Inheritance diagram for SDLwindow:
Inheritance graph
[legend]

Public Member Functions

void draw ()
 
bool init (int w=0, int h=0, bool resizable=true)
 
bool oneStep ()
 
bool processEvents ()
 
 SDLwindow (GLsceneBase *i_scene, LogManagerBase *i_lm, ThreadedObject *i_throbj=NULL)
 
void setSize (int w, int h)
 
void setView (double T[16])
 
void swapBuffers ()
 
 ~SDLwindow ()
 
- Public Member Functions inherited from ThreadedObject
bool isPausing ()
 
bool isRunning ()
 
void notifyFinish ()
 
void pause ()
 
void resume ()
 
void start ()
 
void stop ()
 
 ThreadedObject ()
 
void wait ()
 
 ~ThreadedObject ()
 

Private Member Functions

double sliderRatio (double x)
 

Private Attributes

bool buttonPressedInSliderArea
 
int height
 
std::vector< std::string > helpcommand
 
bool initialized
 
std::vector< std::string > instructions
 
bool isControlPressed
 
bool isShiftPressed
 
LogManagerBaselog
 
double pan
 
double radius
 
GLsceneBasescene
 
bool showingHelp
 
ThreadedObjectthrobj
 
double tilt
 
int width
 
double xCenter
 
double yCenter
 
double zCenter
 

Detailed Description

Definition at line 7 of file SDLUtil.h.

Constructor & Destructor Documentation

◆ SDLwindow()

SDLwindow::SDLwindow ( GLsceneBase i_scene,
LogManagerBase i_lm,
ThreadedObject i_throbj = NULL 
)

Definition at line 18 of file SDLUtil.cpp.

◆ ~SDLwindow()

SDLwindow::~SDLwindow ( )

Definition at line 47 of file SDLUtil.cpp.

Member Function Documentation

◆ draw()

void SDLwindow::draw ( )

Definition at line 308 of file SDLUtil.cpp.

◆ init()

bool SDLwindow::init ( int  w = 0,
int  h = 0,
bool  resizable = true 
)

Definition at line 54 of file SDLUtil.cpp.

◆ oneStep()

bool SDLwindow::oneStep ( )
virtual

Reimplemented from ThreadedObject.

Definition at line 342 of file SDLUtil.cpp.

◆ processEvents()

bool SDLwindow::processEvents ( )

Definition at line 97 of file SDLUtil.cpp.

◆ setSize()

void SDLwindow::setSize ( int  w,
int  h 
)

Definition at line 369 of file SDLUtil.cpp.

◆ setView()

void SDLwindow::setView ( double  T[16])

Definition at line 359 of file SDLUtil.cpp.

◆ sliderRatio()

double SDLwindow::sliderRatio ( double  x)
private

Definition at line 89 of file SDLUtil.cpp.

◆ swapBuffers()

void SDLwindow::swapBuffers ( )

Definition at line 337 of file SDLUtil.cpp.

Member Data Documentation

◆ buttonPressedInSliderArea

bool SDLwindow::buttonPressedInSliderArea
private

Definition at line 29 of file SDLUtil.h.

◆ height

int SDLwindow::height
private

Definition at line 25 of file SDLUtil.h.

◆ helpcommand

std::vector<std::string> SDLwindow::helpcommand
private

Definition at line 30 of file SDLUtil.h.

◆ initialized

bool SDLwindow::initialized
private

Definition at line 31 of file SDLUtil.h.

◆ instructions

std::vector<std::string> SDLwindow::instructions
private

Definition at line 30 of file SDLUtil.h.

◆ isControlPressed

bool SDLwindow::isControlPressed
private

Definition at line 27 of file SDLUtil.h.

◆ isShiftPressed

bool SDLwindow::isShiftPressed
private

Definition at line 27 of file SDLUtil.h.

◆ log

LogManagerBase* SDLwindow::log
private

Definition at line 23 of file SDLUtil.h.

◆ pan

double SDLwindow::pan
private

Definition at line 26 of file SDLUtil.h.

◆ radius

double SDLwindow::radius
private

Definition at line 26 of file SDLUtil.h.

◆ scene

GLsceneBase* SDLwindow::scene
private

Definition at line 22 of file SDLUtil.h.

◆ showingHelp

bool SDLwindow::showingHelp
private

Definition at line 29 of file SDLUtil.h.

◆ throbj

ThreadedObject* SDLwindow::throbj
private

Definition at line 24 of file SDLUtil.h.

◆ tilt

double SDLwindow::tilt
private

Definition at line 26 of file SDLUtil.h.

◆ width

int SDLwindow::width
private

Definition at line 25 of file SDLUtil.h.

◆ xCenter

double SDLwindow::xCenter
private

Definition at line 28 of file SDLUtil.h.

◆ yCenter

double SDLwindow::yCenter
private

Definition at line 28 of file SDLUtil.h.

◆ zCenter

double SDLwindow::zCenter
private

Definition at line 28 of file SDLUtil.h.


The documentation for this class was generated from the following files:


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Sat Dec 17 2022 03:52:22