mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-21 01:49:30 +08:00
Co-authored-by: Alain <alain@mcneel.com> Co-authored-by: Andrew Le Bihan <andy@mcneel.com> Co-authored-by: croudyj <croudyj@gmail.com> Co-authored-by: Dale Fugier <dale@mcneel.com> Co-authored-by: Dale Lear <dalelear@mcneel.com> Co-authored-by: David Eränen <david.eranen@mcneel.com> Co-authored-by: Greg Arden <greg@mcneel.com> Co-authored-by: Mikko Oksanen <mikko@mcneel.com> Co-authored-by: piac <giulio@mcneel.com> Co-authored-by: Steve Baer <steve@mcneel.com> Co-authored-by: TimHemmelman <tim@mcneel.com> Co-authored-by: Will Pearson <will@mcneel.com>
62 lines
2.0 KiB
C++
62 lines
2.0 KiB
C++
//
|
|
// Copyright (c) 1993-2022 Robert McNeel & Associates. All rights reserved.
|
|
// OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert
|
|
// McNeel & Associates.
|
|
//
|
|
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
|
|
// ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
|
|
// MERCHANTABILITY ARE HEREBY DISCLAIMED.
|
|
//
|
|
// For complete openNURBS copyright information see <http://www.opennurbs.org>.
|
|
//
|
|
////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(ON_SKYLIGHT_INC_)
|
|
#define ON_SKYLIGHT_INC_
|
|
|
|
class ON_CLASS ON_Skylight
|
|
{
|
|
public:
|
|
ON_Skylight();
|
|
ON_Skylight(ON_XMLNode& model_node);
|
|
ON_Skylight(const ON_Skylight& sl);
|
|
virtual ~ON_Skylight();
|
|
|
|
virtual const ON_Skylight& operator = (const ON_Skylight& sl);
|
|
|
|
virtual bool operator == (const ON_Skylight& sl) const;
|
|
virtual bool operator != (const ON_Skylight& sl) const;
|
|
|
|
// Returns true if the skylight is enabled, else false.
|
|
virtual bool On(void) const;
|
|
|
|
// Set the skylight enabled state.
|
|
virtual void SetOn(bool b);
|
|
|
|
// Returns the skylight shadow intensity. This is unused at present.
|
|
virtual double ShadowIntensity(void) const;
|
|
|
|
// Set the skylight shadow intensity. This is unused at present.
|
|
virtual void SetShadowIntensity(double d);
|
|
|
|
// Emergency virtual function for future expansion.
|
|
virtual void* EVF(const wchar_t* func, void* data);
|
|
|
|
public: // These methods are only here to support deprecated C# SDK methods.
|
|
// Please use the equivalent methods in ON_3dmRenderSettings.
|
|
/* DEPRECATED*/ bool EnvironmentOverride(void) const;
|
|
/* DEPRECATED*/ void SetEnvironmentOverride(bool on);
|
|
/* DEPRECATED*/ ON_UUID EnvironmentId(void) const;
|
|
/* DEPRECATED*/ void SetEnvironmentId(const ON_UUID& id);
|
|
|
|
private: // For internal use only.
|
|
friend class ON_3dmRenderSettingsPrivate;
|
|
virtual void InvalidateCache(void);
|
|
|
|
private:
|
|
class CImpl;
|
|
CImpl* m_impl;
|
|
};
|
|
|
|
#endif
|