// 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 _VrmlConverter_ShadingAspect_HeaderFile #define _VrmlConverter_ShadingAspect_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_VrmlConverter_ShadingAspect_HeaderFile #include #endif #ifndef _Handle_Vrml_Material_HeaderFile #include #endif #ifndef _Vrml_ShapeHints_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif class Vrml_Material; class Vrml_ShapeHints; //! qualifies the aspect properties for
//! the VRML conversation of ShadedShape .
class VrmlConverter_ShadingAspect : public MMgt_TShared { public: //! create a default ShadingAspect.
Standard_EXPORT VrmlConverter_ShadingAspect(); Standard_EXPORT void SetFrontMaterial(const Handle(Vrml_Material)& aMaterial) ; Standard_EXPORT Handle_Vrml_Material FrontMaterial() const; Standard_EXPORT void SetShapeHints(const Vrml_ShapeHints& aShapeHints) ; Standard_EXPORT Vrml_ShapeHints ShapeHints() const; //! defines necessary of a calculation of normals for ShadedShape to more
//! accurately display curved surfaces, pacticularly when smoooth or phong
//! shading is used in VRML viewer.
//! By default False - the normals are not calculated,
//! True - the normals are calculated.
//! Warning: If normals are calculated the resulting VRML file will
//! be substantially lager.
Standard_EXPORT void SetHasNormals(const Standard_Boolean OnOff) ; //! returns True if the normals are calculating
Standard_EXPORT Standard_Boolean HasNormals() const; //! defines necessary of writing Material from Vrml into output OStream.
//! By default False - the material is not writing into OStream,
//! True - the material is writing.
Standard_EXPORT void SetHasMaterial(const Standard_Boolean OnOff) ; //! returns True if the materials is writing into OStream.
Standard_EXPORT Standard_Boolean HasMaterial() const; DEFINE_STANDARD_RTTI(VrmlConverter_ShadingAspect) protected: private: Handle_Vrml_Material myFrontMaterial; Vrml_ShapeHints myShapeHints; Standard_Boolean myHasNormals; Standard_Boolean myHasMaterial; }; // other Inline functions and methods (like "C++: function call" methods) #endif