libHSPlasma
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pfGUIKnobCtrl Class Reference

#include <pfGUIKnobCtrl.h>

Inheritance diagram for pfGUIKnobCtrl:
pfGUIValueCtrl pfGUIControlMod plSingleModifier plModifier plSynchedObject hsKeyedObject plCreatable

Public Types

enum  KnobFlags {
  kReverseValues = kDerivedFlagsStart, kLeftRightOrientation, kMapToScreenRange, kTriggerOnlyOnMouseUp,
  kMapToAnimationRange
}

Public Member Functions

 pfGUIKnobCtrl ()
virtual void read (hsStream *S, plResManager *mgr)
virtual void write (hsStream *S, plResManager *mgr)
const std::vector< plKey > & getAnimationKeys () const
std::vector< plKey > & getAnimationKeys ()
void addAnimationKey (plKey key)
void delAnimationKey (size_t idx)
void clearAnimationKeys ()
plString getAnimName () const
hsVector3 getAnimStartPos () const
hsVector3 getAnimEndPos () const
void setAnimName (const plString &name)
void setAnimStartPos (const hsVector3 &pos)
void setAnimEndPos (const hsVector3 &pos)
- Public Member Functions inherited from pfGUIValueCtrl
 pfGUIValueCtrl ()
float getMin () const
float getMax () const
float getStep () const
void setMin (float min)
void setMax (float max)
void setStep (float step)
void setRange (float min, float max)
- Public Member Functions inherited from pfGUIControlMod
 pfGUIControlMod ()
virtual ~pfGUIControlMod ()
const std::vector< int > & getSoundIndices () const
std::vector< int > & getSoundIndices ()
void setSoundIndices (const std::vector< int > &indices)
void clearSoundIndices ()
unsigned int getTagID () const
bool isVisible () const
pfGUICtrlProcWriteableObjectgetHandler () const
plKey getDynTextMap () const
plKey getDynTextLayer () const
pfGUIColorSchemegetColorScheme () const
plKey getProxy () const
plKey getSkin () const
void setTagID (unsigned int id)
void setVisible (bool visible)
void setDynTextMap (plKey map)
void setDynTextLayer (plKey layer)
void setProxy (plKey proxy)
void setSkin (plKey skin)
void setHandler (pfGUICtrlProcWriteableObject *handler)
void setColorScheme (pfGUIColorScheme *scheme)
- Public Member Functions inherited from plSingleModifier
bool getFlag (size_t flag) const
void setFlag (size_t flag, bool value)
virtual size_t getTargetsCount () const
virtual plKey getTarget (size_t) const
virtual void addTarget (plKey target)
virtual void removeTarget (plKey)

Protected Member Functions

virtual void IPrcWrite (pfPrcHelper *prc)
virtual void IPrcParse (const pfPrcTag *tag, plResManager *mgr)

Protected Attributes

std::vector< plKeyfAnimationKeys
plString fAnimName
hsVector3 fAnimStartPos
hsVector3 fAnimEndPos
unsigned int fEoaInt1
unsigned int fEoaInt2
unsigned int fEoaInt3
unsigned int fEoaInt4
float fEoaFl1
float fEoaFl2
float fEoaFl3
float fEoaFl4
- Protected Attributes inherited from pfGUIValueCtrl
float fMin
float fMax
float fStep
- Protected Attributes inherited from pfGUIControlMod
unsigned int fTagID
bool fVisible
pfGUICtrlProcWriteableObjectfHandler
plKey fDynTextMap
plKey fDynTextLayer
pfGUIColorSchemefColorScheme
std::vector< int > fSoundIndices
plKey fProxy
plKey fSkin
- Protected Attributes inherited from plSingleModifier
hsBitVector fFlags
plKey fTarget

Member Enumeration Documentation

Enumerator:
kReverseValues 
kLeftRightOrientation 
kMapToScreenRange 
kTriggerOnlyOnMouseUp 
kMapToAnimationRange 

Constructor & Destructor Documentation

pfGUIKnobCtrl::pfGUIKnobCtrl ( )

Member Function Documentation

void pfGUIKnobCtrl::addAnimationKey ( plKey  key)
void pfGUIKnobCtrl::clearAnimationKeys ( )
void pfGUIKnobCtrl::delAnimationKey ( size_t  idx)
const std::vector<plKey>& pfGUIKnobCtrl::getAnimationKeys ( ) const
std::vector<plKey>& pfGUIKnobCtrl::getAnimationKeys ( )
hsVector3 pfGUIKnobCtrl::getAnimEndPos ( ) const
plString pfGUIKnobCtrl::getAnimName ( ) const
hsVector3 pfGUIKnobCtrl::getAnimStartPos ( ) const
virtual void pfGUIKnobCtrl::IPrcParse ( const pfPrcTag tag,
plResManager mgr 
)
protectedvirtual

This must be overloaded by subclasses to parse PRC data specific to the class from the PRC document. It is called once for each tag that is a child to the Creatable tag itself, so subclasses should check for each supported tag and handle it accordingly if it matches. If the tag is not recognized, it should be passed along to the parent class.

Reimplemented from pfGUIValueCtrl.

virtual void pfGUIKnobCtrl::IPrcWrite ( pfPrcHelper prc)
protectedvirtual

This must be overloaded by subclasses to write PRC data specific to the class to the PRC document. Do not write the top-level creatable tag, that is handled by prcWrite().

Reimplemented from pfGUIValueCtrl.

virtual void pfGUIKnobCtrl::read ( hsStream ,
plResManager  
)
virtual

Reads this creatable directly from the stream. If any keys are read, they will be added to the plResManager automatically.

Reimplemented from pfGUIValueCtrl.

void pfGUIKnobCtrl::setAnimEndPos ( const hsVector3 pos)
void pfGUIKnobCtrl::setAnimName ( const plString name)
void pfGUIKnobCtrl::setAnimStartPos ( const hsVector3 pos)
virtual void pfGUIKnobCtrl::write ( hsStream ,
plResManager  
)
virtual

Writes this creatable directly to the stream. The plResManager is used to manage any key references written by this creatable.

Reimplemented from pfGUIValueCtrl.

Member Data Documentation

std::vector<plKey> pfGUIKnobCtrl::fAnimationKeys
protected
hsVector3 pfGUIKnobCtrl::fAnimEndPos
protected
plString pfGUIKnobCtrl::fAnimName
protected
hsVector3 pfGUIKnobCtrl::fAnimStartPos
protected
float pfGUIKnobCtrl::fEoaFl1
protected
float pfGUIKnobCtrl::fEoaFl2
protected
float pfGUIKnobCtrl::fEoaFl3
protected
float pfGUIKnobCtrl::fEoaFl4
protected
unsigned int pfGUIKnobCtrl::fEoaInt1
protected
unsigned int pfGUIKnobCtrl::fEoaInt2
protected
unsigned int pfGUIKnobCtrl::fEoaInt3
protected
unsigned int pfGUIKnobCtrl::fEoaInt4
protected

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