arsa  2.7
Public Member Functions | Static Public Member Functions | List of all members
irr::arsa::CAVSceneNode Class Reference

#include <CAVSceneNode.h>

Inheritance diagram for irr::arsa::CAVSceneNode:
irr::scene::ISceneNode irr::io::IAttributeExchangingObject irr::IReferenceCounted

Public Member Functions

 CAVSceneNode (irr::IrrlichtDevice *device, scene::ISceneNode *parent, scene::ISceneManager *smgr, arsa::CSceneManager2 *smgr2, s32 id=-1)
 Constructor. More...
 
virtual ~CAVSceneNode ()
 
virtual bool open (irr::io::IReadFile *fp, const irr::core::dimension2di &size=irr::core::dimension2di(0, 0))
 
virtual bool openFromFile (const irr::core::stringc &filename, bool stream=true, const irr::core::dimension2di &size=irr::core::dimension2di(0, 0))
 
virtual void avUpdate ()
 user must call update function ever loop More...
 
virtual void close ()
 close this audio More...
 
virtual bool isPlaying () const
 
virtual bool isEnd () const
 
virtual void play (bool play=true)
 
virtual void loop (bool loop)
 
virtual void stop ()
 
virtual void volume (irr::f32 vol=1.0f)
 
virtual bool seek (u32 hh, u32 mm, u32 ss)
 
virtual bool seek_sec (irr::s32 sec)
 
virtual bool seek_percent (irr::s32 percent)
 
virtual bool resize (const irr::core::dimension2di &size)
 
virtual irr::core::dimension2di getTextureSize ()
 
virtual void show (bool show=true)
 
virtual bool isForground () const
 
virtual bool isShow () const
 
virtual bool draw (bool is_forground=true)
 
virtual void useAsTexture (bool active=true)
 
virtual void useAsForground (bool active=true)
 
virtual void playback (E_PLAY_BACK pb)
 
virtual void setPlayTime (f32 sec)
 
virtual video::ITexturegetTexture ()
 
virtual void setDrawOrder (u32 order)
 
virtual u32 getDrawOrder () const
 
virtual irr::u64 getVideoEndDuration () const
 
virtual irr::u64 getAudioEndDuration () const
 
virtual irr::u64 getVideoCurrentDuration () const
 
virtual irr::u64 getAudioCurrentDuration () const
 
virtual bool hasVideo () const
 
virtual bool hasAudio () const
 
virtual CAVSceneNodeclone (scene::ISceneNode *newParent=0, scene::ISceneManager *newSceneManager=0)
 Will create a copy of this scenenode and it's settings. More...
 
virtual void OnRegisterSceneNode ()
 Pre-Register stuff. More...
 
virtual void OnAnimate (u32 timeMs)
 OnAnimate() is called just before rendering the whole scene. More...
 
virtual void render ()
 Render our grid using 3D lines. More...
 
virtual const core::aabbox3d< f32 > & getBoundingBox () const
 Returns our bounding box. More...
 
virtual void serializeAttributes (io::IAttributes *out, io::SAttributeReadWriteOptions *options=0) const
 Writes attributes of the scene node. More...
 
virtual void deserializeAttributes (io::IAttributes *in, io::SAttributeReadWriteOptions *options=0)
 Reads attributes of the scene node. More...
 
virtual scene::ESCENE_NODE_TYPE getType () const
 Returns type of the scene node. More...
 
virtual void setVisible (bool isVisible)
 Sets if the node should be visible or not. More...
 
virtual video::SMaterialgetMaterial (u32 i)
 
virtual u32 getMaterialCount () const
 returns amount of materials used by this scene node. More...
 
- Public Member Functions inherited from irr::scene::ISceneNode
 ISceneNode (ISceneNode *parent, ISceneManager *mgr, s32 id=-1, const core::vector3df &position=core::vector3df(0, 0, 0), const core::vector3df &rotation=core::vector3df(0, 0, 0), const core::vector3df &scale=core::vector3df(1.0f, 1.0f, 1.0f))
 Constructor. More...
 
virtual ~ISceneNode ()
 Destructor. More...
 
virtual const c8getName () const
 Returns the name of the node. More...
 
virtual void setName (const c8 *name)
 Sets the name of the node. More...
 
virtual void setName (const core::stringc &name)
 Sets the name of the node. More...
 
virtual const core::aabbox3d< f32getTransformedBoundingBox () const
 Get the axis aligned, transformed and animated absolute bounding box of this node. More...
 
virtual void getTransformedBoundingBoxEdges (core::array< core::vector3d< f32 > > &edges) const
 
virtual const core::matrix4getAbsoluteTransformation () const
 Get the absolute transformation of the node. Is recalculated every OnAnimate()-call. More...
 
virtual core::matrix4 getRelativeTransformation () const
 Returns the relative transformation of the scene node. More...
 
virtual bool isVisible () const
 Returns whether the node should be visible (if all of its parents are visible). More...
 
virtual bool isTrulyVisible () const
 Check whether the node is truly visible, taking into accounts its parents' visibility. More...
 
virtual s32 getID () const
 Get the id of the scene node. More...
 
virtual void setID (s32 id)
 Sets the id of the scene node. More...
 
virtual void addChild (ISceneNode *child)
 Adds a child to this scene node. More...
 
virtual bool removeChild (ISceneNode *child)
 Removes a child from this scene node. More...
 
virtual void removeAll ()
 Removes all children of this scene node. More...
 
virtual void remove ()
 Removes this scene node from the scene. More...
 
virtual void addAnimator (ISceneNodeAnimator *animator)
 Adds an animator which should animate this node. More...
 
const core::list< ISceneNodeAnimator * > & getAnimators () const
 Get a list of all scene node animators. More...
 
virtual void removeAnimator (ISceneNodeAnimator *animator)
 Removes an animator from this scene node. More...
 
virtual void removeAnimators ()
 Removes all animators from this scene node. More...
 
void setMaterialFlag (video::E_MATERIAL_FLAG flag, bool newvalue)
 Sets all material flags at once to a new value. More...
 
void setMaterialTexture (u32 textureLayer, video::ITexture *texture)
 Sets the texture of the specified layer in all materials of this scene node to the new texture. More...
 
void setMaterialType (video::E_MATERIAL_TYPE newType)
 Sets the material type of all materials in this scene node to a new material type. More...
 
virtual const core::vector3dfgetScale () const
 Gets the scale of the scene node relative to its parent. More...
 
virtual void setScale (const core::vector3df &scale)
 Sets the relative scale of the scene node. More...
 
virtual const core::vector3dfgetRotation () const
 Gets the rotation of the node relative to its parent. More...
 
virtual void setRotation (const core::vector3df &rotation)
 Sets the rotation of the node relative to its parent. More...
 
virtual const core::vector3dfgetPosition () const
 Gets the position of the node relative to its parent. More...
 
virtual void setPosition (const core::vector3df &newpos)
 Sets the position of the node relative to its parent. More...
 
virtual core::vector3df getAbsolutePosition () const
 Gets the absolute position of the node in world coordinates. More...
 
void setAutomaticCulling (u32 state)
 Set a culling style or disable culling completely. More...
 
u32 getAutomaticCulling () const
 Gets the automatic culling state. More...
 
virtual void setDebugDataVisible (u32 state)
 Sets if debug data like bounding boxes should be drawn. More...
 
u32 isDebugDataVisible () const
 Returns if debug data like bounding boxes are drawn. More...
 
void setIsDebugObject (bool debugObject)
 Sets if this scene node is a debug object. More...
 
bool isDebugObject () const
 Returns if this scene node is a debug object. More...
 
const core::list< ISceneNode * > & getChildren () const
 Returns a const reference to the list of all children. More...
 
virtual void setParent (ISceneNode *newParent)
 Changes the parent of the scene node. More...
 
virtual ITriangleSelectorgetTriangleSelector () const
 Returns the triangle selector attached to this scene node. More...
 
virtual void setTriangleSelector (ITriangleSelector *selector)
 Sets the triangle selector of the scene node. More...
 
virtual void updateAbsolutePosition ()
 Updates the absolute position based on the relative and the parents position. More...
 
scene::ISceneNodegetParent () const
 Returns the parent of this scene node. More...
 
virtual ISceneManagergetSceneManager (void) const
 Retrieve the scene manager for this node. More...
 
- Public Member Functions inherited from irr::IReferenceCounted
 IReferenceCounted ()
 Constructor. More...
 
virtual ~IReferenceCounted ()
 Destructor. More...
 
void grab () const
 Grabs the object. Increments the reference counter by one. More...
 
bool drop () const
 Drops the object. Decrements the reference counter by one. More...
 
s32 getReferenceCount () const
 Get the reference count. More...
 
const c8getDebugName () const
 Returns the debug name of the object. More...
 

Static Public Member Functions

static void AV_INIT (irr::ILogger *log=0)
 
static bool AV_DEINIT ()
 
static void internal_volume (irr::f32 vol=1.0f)
 
static E_PLAY_BACK getPlayback (const core::stringc &str)
 

Additional Inherited Members

- Protected Member Functions inherited from irr::scene::ISceneNode
void cloneMembers (ISceneNode *toCopyFrom, ISceneManager *newManager)
 A clone function for the ISceneNode members. More...
 
void setSceneManager (ISceneManager *newManager)
 
- Protected Member Functions inherited from irr::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object. More...
 
- Protected Attributes inherited from irr::scene::ISceneNode
core::stringc Name
 Name of the scene node. More...
 
core::matrix4 AbsoluteTransformation
 Absolute transformation of the node. More...
 
core::vector3df RelativeTranslation
 Relative translation of the scene node. More...
 
core::vector3df RelativeRotation
 Relative rotation of the scene node. More...
 
core::vector3df RelativeScale
 Relative scale of the scene node. More...
 
ISceneNodeParent
 Pointer to the parent. More...
 
core::list< ISceneNode * > Children
 List of all children of this node. More...
 
core::list< ISceneNodeAnimator * > Animators
 List of all animator nodes. More...
 
ISceneManagerSceneManager
 Pointer to the scene manager. More...
 
ITriangleSelectorTriangleSelector
 Pointer to the triangle selector. More...
 
s32 ID
 ID of the node. More...
 
u32 AutomaticCullingState
 Automatic culling state. More...
 
u32 DebugDataVisible
 Flag if debug data should be drawn, such as Bounding Boxes. More...
 
bool IsVisible
 Is the node visible? More...
 
bool IsDebugObject
 Is debug object? More...
 

Detailed Description

Definition at line 114 of file CAVSceneNode.h.

Constructor & Destructor Documentation

◆ CAVSceneNode()

irr::arsa::CAVSceneNode::CAVSceneNode ( irr::IrrlichtDevice device,
scene::ISceneNode parent,
scene::ISceneManager smgr,
arsa::CSceneManager2 *  smgr2,
s32  id = -1 
)

Constructor.

◆ ~CAVSceneNode()

virtual irr::arsa::CAVSceneNode::~CAVSceneNode ( )
virtual

Member Function Documentation

◆ AV_DEINIT()

static bool irr::arsa::CAVSceneNode::AV_DEINIT ( )
static

◆ AV_INIT()

static void irr::arsa::CAVSceneNode::AV_INIT ( irr::ILogger log = 0)
static

◆ avUpdate()

virtual void irr::arsa::CAVSceneNode::avUpdate ( )
virtual

user must call update function ever loop

◆ clone()

virtual CAVSceneNode* irr::arsa::CAVSceneNode::clone ( scene::ISceneNode newParent = 0,
scene::ISceneManager newSceneManager = 0 
)
virtual

Will create a copy of this scenenode and it's settings.

Reimplemented from irr::scene::ISceneNode.

◆ close()

virtual void irr::arsa::CAVSceneNode::close ( )
virtual

close this audio

◆ deserializeAttributes()

virtual void irr::arsa::CAVSceneNode::deserializeAttributes ( io::IAttributes in,
io::SAttributeReadWriteOptions options = 0 
)
virtual

Reads attributes of the scene node.

Reimplemented from irr::scene::ISceneNode.

◆ draw()

virtual bool irr::arsa::CAVSceneNode::draw ( bool  is_forground = true)
virtual

◆ getAudioCurrentDuration()

virtual irr::u64 irr::arsa::CAVSceneNode::getAudioCurrentDuration ( ) const
virtual

◆ getAudioEndDuration()

virtual irr::u64 irr::arsa::CAVSceneNode::getAudioEndDuration ( ) const
virtual

◆ getBoundingBox()

virtual const core::aabbox3d<f32>& irr::arsa::CAVSceneNode::getBoundingBox ( ) const
virtual

Returns our bounding box.

Implements irr::scene::ISceneNode.

◆ getDrawOrder()

virtual u32 irr::arsa::CAVSceneNode::getDrawOrder ( ) const
inlinevirtual

Definition at line 160 of file CAVSceneNode.h.

160 { return m_draworder; }

◆ getMaterial()

virtual video::SMaterial& irr::arsa::CAVSceneNode::getMaterial ( u32  i)
virtual

returns the material based on the zero based index i. To get the amount of materials used by this scene node, use getMaterialCount(). This function is needed for inserting the node into the scene hirachy on a optimal position for minimizing renderstate changes, but can also be used to directly modify the material of a scene node.

Reimplemented from irr::scene::ISceneNode.

◆ getMaterialCount()

virtual u32 irr::arsa::CAVSceneNode::getMaterialCount ( ) const
virtual

returns amount of materials used by this scene node.

Reimplemented from irr::scene::ISceneNode.

◆ getPlayback()

static E_PLAY_BACK irr::arsa::CAVSceneNode::getPlayback ( const core::stringc str)
static

◆ getTexture()

virtual video::ITexture* irr::arsa::CAVSceneNode::getTexture ( )
virtual

◆ getTextureSize()

virtual irr::core::dimension2di irr::arsa::CAVSceneNode::getTextureSize ( )
virtual

◆ getType()

virtual scene::ESCENE_NODE_TYPE irr::arsa::CAVSceneNode::getType ( ) const
inlinevirtual

Returns type of the scene node.

Reimplemented from irr::scene::ISceneNode.

Definition at line 190 of file CAVSceneNode.h.

ESCENE_NODE_TYPE
An enumeration for all types of built-in scene nodes.
const int ESNT_AV
Definition: CAVSceneNode.h:19

◆ getVideoCurrentDuration()

virtual irr::u64 irr::arsa::CAVSceneNode::getVideoCurrentDuration ( ) const
virtual

◆ getVideoEndDuration()

virtual irr::u64 irr::arsa::CAVSceneNode::getVideoEndDuration ( ) const
virtual

◆ hasAudio()

virtual bool irr::arsa::CAVSceneNode::hasAudio ( ) const
inlinevirtual

Definition at line 166 of file CAVSceneNode.h.

166 { return m_has_audio; }

◆ hasVideo()

virtual bool irr::arsa::CAVSceneNode::hasVideo ( ) const
inlinevirtual

Definition at line 165 of file CAVSceneNode.h.

165 { return m_has_video; }

◆ internal_volume()

static void irr::arsa::CAVSceneNode::internal_volume ( irr::f32  vol = 1.0f)
static

◆ isEnd()

virtual bool irr::arsa::CAVSceneNode::isEnd ( ) const
virtual

◆ isForground()

virtual bool irr::arsa::CAVSceneNode::isForground ( ) const
inlinevirtual

Definition at line 149 of file CAVSceneNode.h.

149 { return m_forground; }

◆ isPlaying()

virtual bool irr::arsa::CAVSceneNode::isPlaying ( ) const
virtual

◆ isShow()

virtual bool irr::arsa::CAVSceneNode::isShow ( ) const
inlinevirtual

Definition at line 150 of file CAVSceneNode.h.

150 { return m_show; }

◆ loop()

virtual void irr::arsa::CAVSceneNode::loop ( bool  loop)
virtual

◆ OnAnimate()

virtual void irr::arsa::CAVSceneNode::OnAnimate ( u32  timeMs)
virtual

OnAnimate() is called just before rendering the whole scene.

Reimplemented from irr::scene::ISceneNode.

◆ OnRegisterSceneNode()

virtual void irr::arsa::CAVSceneNode::OnRegisterSceneNode ( )
virtual

Pre-Register stuff.

Reimplemented from irr::scene::ISceneNode.

◆ open()

virtual bool irr::arsa::CAVSceneNode::open ( irr::io::IReadFile fp,
const irr::core::dimension2di size = irr::core::dimension2di(0, 0) 
)
virtual

stream from secondary storage size 0,0 = original video size -1,-1 = virtual screen size w, h = custom videosize

◆ openFromFile()

virtual bool irr::arsa::CAVSceneNode::openFromFile ( const irr::core::stringc filename,
bool  stream = true,
const irr::core::dimension2di size = irr::core::dimension2di(0, 0) 
)
virtual

◆ play()

virtual void irr::arsa::CAVSceneNode::play ( bool  play = true)
virtual

◆ playback()

virtual void irr::arsa::CAVSceneNode::playback ( E_PLAY_BACK  pb)
virtual

◆ render()

virtual void irr::arsa::CAVSceneNode::render ( )
virtual

Render our grid using 3D lines.

Implements irr::scene::ISceneNode.

◆ resize()

virtual bool irr::arsa::CAVSceneNode::resize ( const irr::core::dimension2di size)
virtual

◆ seek()

virtual bool irr::arsa::CAVSceneNode::seek ( u32  hh,
u32  mm,
u32  ss 
)
virtual

◆ seek_percent()

virtual bool irr::arsa::CAVSceneNode::seek_percent ( irr::s32  percent)
virtual

◆ seek_sec()

virtual bool irr::arsa::CAVSceneNode::seek_sec ( irr::s32  sec)
virtual

◆ serializeAttributes()

virtual void irr::arsa::CAVSceneNode::serializeAttributes ( io::IAttributes out,
io::SAttributeReadWriteOptions options = 0 
) const
virtual

Writes attributes of the scene node.

Reimplemented from irr::scene::ISceneNode.

◆ setDrawOrder()

virtual void irr::arsa::CAVSceneNode::setDrawOrder ( u32  order)
inlinevirtual

Definition at line 159 of file CAVSceneNode.h.

159 { m_draworder = order; }
GLfixed GLfixed GLint GLint order

◆ setPlayTime()

virtual void irr::arsa::CAVSceneNode::setPlayTime ( f32  sec)
virtual

◆ setVisible()

virtual void irr::arsa::CAVSceneNode::setVisible ( bool  isVisible)
virtual

Sets if the node should be visible or not.

All children of this node won't be visible either, when set to false. Invisible nodes are not valid candidates for selection by collision manager bounding box methods.

Parameters
isVisibleIf the node shall be visible.

Reimplemented from irr::scene::ISceneNode.

◆ show()

virtual void irr::arsa::CAVSceneNode::show ( bool  show = true)
inlinevirtual

Definition at line 147 of file CAVSceneNode.h.

147 { m_show = show; }
virtual void show(bool show=true)
Definition: CAVSceneNode.h:147

◆ stop()

virtual void irr::arsa::CAVSceneNode::stop ( )
virtual

◆ useAsForground()

virtual void irr::arsa::CAVSceneNode::useAsForground ( bool  active = true)
inlinevirtual

Definition at line 154 of file CAVSceneNode.h.

154 { m_forground = active; }

◆ useAsTexture()

virtual void irr::arsa::CAVSceneNode::useAsTexture ( bool  active = true)
virtual

◆ volume()

virtual void irr::arsa::CAVSceneNode::volume ( irr::f32  vol = 1.0f)
virtual

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