// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _V3d_Light_HeaderFile #define _V3d_Light_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_V3d_Light_HeaderFile #include #endif #ifndef _V3d_TypeOfLight_HeaderFile #include #endif #ifndef _Handle_Visual3d_Light_HeaderFile #include #endif #ifndef _Handle_Graphic3d_Structure_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Handle_V3d_Light_HeaderFile #include #endif #ifndef _V3d_View_HeaderFile #include #endif #ifndef _Handle_V3d_Viewer_HeaderFile #include #endif #ifndef _Quantity_TypeOfColor_HeaderFile #include #endif #ifndef _Quantity_Parameter_HeaderFile #include #endif #ifndef _Quantity_NameOfColor_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_V3d_View_HeaderFile #include #endif #ifndef _V3d_Coordinate_HeaderFile #include #endif class Visual3d_Light; class Graphic3d_Structure; class Viewer_BadValue; class V3d_Viewer; class Quantity_Color; class V3d_View; class Graphic3d_Vertex; //! Defines services on Light type objects..
class V3d_Light : public MMgt_TShared { public: //! Defines the colour of a light source
//! according to the type of colour definition
//! and the three corresponding values.
Standard_EXPORT void SetColor(const Quantity_TypeOfColor Type,const Quantity_Parameter V1,const Quantity_Parameter V2,const Quantity_Parameter V3) ; //! Defines the colour of a light source by giving
//! the name of the colour in the form Quantity_NOC_xxxx .
Standard_EXPORT void SetColor(const Quantity_NameOfColor Name) ; //! Defines the colour of a light source by giving
//! the basic colour.
Standard_EXPORT void SetColor(const Quantity_Color& Name) ; //! Returns the colour of the light source depending of
//! the color type.
Standard_EXPORT void Color(const Quantity_TypeOfColor Type,Quantity_Parameter& V1,Quantity_Parameter& V2,Quantity_Parameter& V3) const; //! Returns the colour of the light source.
Standard_EXPORT void Color(Quantity_NameOfColor& Name) const; //! Returns the colour of the light source.
Standard_EXPORT Quantity_Color Color() const; //! Returns the Type of the Light
Standard_EXPORT V3d_TypeOfLight Type() const; //! returns true if the light is a headlight
Standard_EXPORT Standard_Boolean Headlight() const; //! Returns TRUE when a light representation is displayed
Standard_EXPORT Standard_Boolean IsDisplayed() const; friend //! Activates MyLight in the view.
Standard_EXPORT void V3d_View::SetLightOn(const Handle(V3d_Light)& MyLight) ; friend //! Activates all the lights defined in this view.
Standard_EXPORT void V3d_View::SetLightOn() ; friend //! Desactivate MyLight in this view.
Standard_EXPORT void V3d_View::SetLightOff(const Handle(V3d_Light)& MyLight) ; friend //! Deactivate all the Lights defined in this view.
Standard_EXPORT void V3d_View::SetLightOff() ; DEFINE_STANDARD_RTTI(V3d_Light) protected: Standard_EXPORT V3d_Light(const Handle(V3d_Viewer)& VM); //! Returns the symetric point coordinates of "aPoint"
//! on the sphere of center "Center" and radius "Radius".
//! VX,VY,VZ is the project vector of view.
Standard_EXPORT static void SymetricPointOnSphere(const Handle(V3d_View)& aView,const Graphic3d_Vertex& Center,const Graphic3d_Vertex& aPoint,const Quantity_Parameter Radius,V3d_Coordinate& X,V3d_Coordinate& Y,V3d_Coordinate& Z,Quantity_Parameter& VX,Quantity_Parameter& VY,Quantity_Parameter& VZ) ; V3d_TypeOfLight MyType; Handle_Visual3d_Light MyLight; Handle_Graphic3d_Structure MyGraphicStructure; Handle_Graphic3d_Structure MyGraphicStructure1; private: //! Returns the Light of the associated Visual3d.
Standard_EXPORT Handle_Visual3d_Light Light() const; }; // other Inline functions and methods (like "C++: function call" methods) #endif