SpotLight.h

00001 //***************************************************************************************
00002 //
00003 // File supervisor: Softimage 3D Games & 3D Bridge team
00004 //
00005 // (c) Copyright 2001-2002 Avid Technology, Inc. . All rights reserved.
00006 //
00007 //***************************************************************************************
00008 
00009 /****************************************************************************************
00010 THIS CODE IS PUBLISHED AS A SAMPLE ONLY AND IS PROVIDED "AS IS".
00011 IN NO EVENT SHALL SOFTIMAGE, AVID TECHNOLOGY, INC. AND/OR THEIR RESPECTIVE
00012 SUPPLIERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
00013 DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
00014 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
00015 CONNECTION WITH THE USE OR PERFORMANCE OF THIS CODE .
00016 
00017 COPYRIGHT NOTICE. Copyright © 1999-2002 Avid Technology Inc. . All rights reserved. 
00018  
00019 SOFTIMAGE is a registered trademark of Avid Technology Inc. or its subsidiaries 
00020 or divisions. Windows NT is a registered trademark of Microsoft Corp. All other
00021 trademarks contained herein are the property of their respective owners. 
00022 ****************************************************************************************/
00023 #ifndef _SPOTLIGHT_H
00024 #define _SPOTLIGHT_H
00025 
00026 #include "Light.h"
00027 
00029 class XSIEXPORT CSLSpotLight
00030     : public CSLLight
00031 {
00032 public:
00033 
00040     CSLSpotLight(CSLScene* in_pScene, CSLModel *in_pModel, CdotXSITemplate* in_pTemplate);
00041 
00044     virtual ~CSLSpotLight();
00045 
00049     CSIBCVector3D GetInterestPosition();
00050 
00055     SI_Void SetInterestPosition(CSIBCVector3D &in_rValue);
00056 
00060     SI_Float GetConeAngle();
00061 
00066     SI_Void SetConeAngle(SI_Float in_fValue);
00067 
00071     SI_Float GetSpreadAngle();
00072 
00077     SI_Void SetSpreadAngle(SI_Float in_fValue);
00078 
00083     virtual SI_Error Synchronize();
00084 
00088     virtual ETemplateType Type();
00089 
00094     virtual CSLAnimatableType* ParameterFromName(SI_Char *in_szName);
00095 
00101     virtual CSLAnimatableType* ParameterFromType(EFCurveType in_Type, SI_Char *in_szParameterName);
00102 
00103     CSLVector3DProxy* GetInterestPositionProxy() { return &m_InterestPosition;};
00104     
00105 protected:
00106     virtual SI_Bool ConstraintTypeIsValid(CSLConstraint::EConstraintType in_ConstraintType);
00107 
00108 private:
00109     CSLVector3DProxy m_InterestPosition;
00110     CSLFloatProxy m_ConeAngle;
00111     CSLFloatProxy m_SpreadAngle;
00112 
00113     void *m_pReserved;  // reserved for future extension
00114 };
00115 
00116 #endif