Free Electron
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
fe::ext::HoudiniBrush Class Reference

Houdini Model State node. More...

#include <HoudiniBrush.h>

Inheritance diagram for fe::ext::HoudiniBrush:
Inheritance graph
[legend]

Public Member Functions

 HoudiniBrush (JEDI_View &a_rView, PI_StateTemplate &a_rTemplate, BM_SceneManager *a_pScene, const char *a_pCursor=BM_DEFAULT_CURSOR)
 
virtual const char * className (void) const
 name and type of this class More...
 
- Public Member Functions inherited from fe::ext::MetaBrush
sp< Mastermaster (void) const
 

Static Public Member Functions

static int discoverBrushes (BM_ResourceManager *a_pManager)
 
static BM_State * construct (BM_View &a_rView, PI_StateTemplate &a_rTemplate, BM_SceneManager *a_pScene)
 used by DM to create the state More...
 

Protected Member Functions

virtual int enter (BM_SimpleState::BM_EntryType a_how) override
 called when the user enters the state More...
 
virtual void exit (void) override
 called when the user leaves the state More...
 
virtual void interrupt (BM_SimpleState *a_pState=0) override
 called when the user temporarily leaves the state (mouse leaves the viewport) More...
 
virtual void resume (BM_SimpleState *a_pState=0) override
 called when the user returns to the state after leaving temporarily (mouse re-enters the viewport) More...
 
virtual int handleMouseEvent (UI_Event *a_pEvent) override
 respond to mouse events More...
 
virtual int handleMouseWheelEvent (UI_Event *a_pEvent) override
 respond to mouse wheel events More...
 
virtual bool handleDoubleClickEvent (UI_Event *a_pEvent) override
 respond to double mouse clicks (additional) More...
 
virtual void handleGeoChangedEvent (UI_Event *a_pEvent) override
 
virtual int handleKeyTypeEvent (int key, UI_Event *a_pEvent, BM_Viewport &a_rViewport) override
 respond to keyboard events More...
 
virtual bool handleTransitoryKey (const UI_Event &a_rEvent, int a_hotkey_id) override
 
virtual void handleEvent (UI_Event *a_pEvent)
 
virtual void doRender (RE_Render *a_pRender, int a_x, int a_y, int a_ghost) override
 render the brush "cursor" geometry More...
 
virtual void updatePrompt (void)
 set the prompt's text More...
 
void updateBrush (int a_x, int a_y)
 reposition the brush's guide geometry More...
 
- Protected Member Functions inherited from fe::ext::MetaBrush
void initEvent (sp< Scope > &a_rspScope)
 
void initDrawInterfaces (MetaPlugin *a_pMetaPlugin)
 
void updateDrawInterfaces (void)
 
void setupDrawOpenGL (void)
 
void draw (void)
 
void drawBrush (void)
 
virtual void drawPost (void)
 

Private Member Functions

void eventStart (void)
 
void eventStop (void)
 
void drawStart (void)
 
void drawStop (void)
 
void generateNoEvent (void)
 
void printEvent (const UI_Event *a_pEvent)
 
int handleAnyEvent (const UI_Event *a_pEvent)
 
void brush (void)
 

Static Private Member Functions

static String scanForBrushNames (void)
 

Private Attributes

BWORD m_started
 
BWORD m_doubleClick
 
BWORD m_idleQueued
 
BWORD m_exposed
 
BWORD m_ortho
 
Matrix< 4, 4, F64 > m_projection
 
bool m_isBrushVisible
 
GU_Detail m_gdp
 
Real m_nearPlane
 
Real m_farPlane
 

Additional Inherited Members

- Protected Attributes inherited from fe::ext::MetaBrush
WindowEvent m_event
 
Box2i m_viewport
 
OperatorContextm_pOperatorContext
 
sp< Masterm_spMaster
 
sp< DrawIm_spDrawOpenGL
 
sp< DrawIm_spDrawPerspective
 
sp< DrawIm_spDrawOrtho
 

Detailed Description

Houdini Model State node.

Member Function Documentation

◆ className()

const char * fe::ext::HoudiniBrush::className ( void  ) const
virtual

name and type of this class

◆ construct()

BM_State * fe::ext::HoudiniBrush::construct ( BM_View &  a_rView,
PI_StateTemplate &  a_rTemplate,
BM_SceneManager *  a_pScene 
)
static

used by DM to create the state

◆ doRender()

void fe::ext::HoudiniBrush::doRender ( RE_Render *  a_pRender,
int  a_x,
int  a_y,
int  a_ghost 
)
overrideprotectedvirtual

render the brush "cursor" geometry

◆ enter()

int fe::ext::HoudiniBrush::enter ( BM_SimpleState::BM_EntryType  a_how)
overrideprotectedvirtual

called when the user enters the state

◆ exit()

void fe::ext::HoudiniBrush::exit ( void  )
overrideprotectedvirtual

called when the user leaves the state

◆ handleDoubleClickEvent()

bool fe::ext::HoudiniBrush::handleDoubleClickEvent ( UI_Event *  a_pEvent)
overrideprotectedvirtual

respond to double mouse clicks (additional)

◆ handleKeyTypeEvent()

int fe::ext::HoudiniBrush::handleKeyTypeEvent ( int  key,
UI_Event *  a_pEvent,
BM_Viewport &  a_rViewport 
)
overrideprotectedvirtual

respond to keyboard events

◆ handleMouseEvent()

int fe::ext::HoudiniBrush::handleMouseEvent ( UI_Event *  a_pEvent)
overrideprotectedvirtual

respond to mouse events

◆ handleMouseWheelEvent()

int fe::ext::HoudiniBrush::handleMouseWheelEvent ( UI_Event *  a_pEvent)
overrideprotectedvirtual

respond to mouse wheel events

◆ interrupt()

void fe::ext::HoudiniBrush::interrupt ( BM_SimpleState *  a_pState = 0)
overrideprotectedvirtual

called when the user temporarily leaves the state (mouse leaves the viewport)

◆ resume()

void fe::ext::HoudiniBrush::resume ( BM_SimpleState *  a_pState = 0)
overrideprotectedvirtual

called when the user returns to the state after leaving temporarily (mouse re-enters the viewport)

◆ updateBrush()

void fe::ext::HoudiniBrush::updateBrush ( int  a_x,
int  a_y 
)
protected

reposition the brush's guide geometry

◆ updatePrompt()

void fe::ext::HoudiniBrush::updatePrompt ( void  )
protectedvirtual

set the prompt's text


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