Files
opennurbs/opennurbs_render_channels.h
Bozo The Builder ef4be960ca Sync changes from upstream repository
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>
2023-04-23 04:06:52 -07:00

63 lines
1.8 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_RENDER_CHANNELS_INC_)
#define ON_RENDER_CHANNELS_INC_
class ON_CLASS ON_RenderChannels
{
public:
ON_RenderChannels();
ON_RenderChannels(ON_XMLNode& model_node);
ON_RenderChannels(const ON_RenderChannels& rch);
virtual ~ON_RenderChannels();
virtual const ON_RenderChannels& operator = (const ON_RenderChannels& rch);
virtual bool operator == (const ON_RenderChannels& rch) const;
virtual bool operator != (const ON_RenderChannels& rch) const;
enum class Modes : unsigned int
{
Automatic,
Custom,
};
// Get the mode.
virtual Modes Mode(void) const;
// Set the mode.
virtual void SetMode(Modes m);
// Get the list of channels to render when in 'custom' mode.
// - 'chan' accepts the channel ids. */
virtual void GetCustomList(ON_SimpleArray<ON_UUID>& chan) const;
// Set the list of channels to render when in 'custom' mode.
// - 'chan' contains the channel ids.
virtual void SetCustomList(const ON_SimpleArray<ON_UUID>& chan);
// Emergency virtual function for future expansion.
virtual void* EVF(const wchar_t* func, void* data);
private: // For internal use only.
friend class ON_3dmRenderSettingsPrivate;
virtual void InvalidateCache(void);
private:
class CImpl;
CImpl* m_impl;
};
#endif