added everything
This commit is contained in:
88
lib/maxsdk70/include/ILayerProperties.h
Executable file
88
lib/maxsdk70/include/ILayerProperties.h
Executable file
@@ -0,0 +1,88 @@
|
||||
/**********************************************************************
|
||||
*<
|
||||
FILE: ILayerProperties.h
|
||||
|
||||
DESCRIPTION: Declare the function published interface to layers
|
||||
note: This interface is a facade over disparate property sets on layers:
|
||||
|
||||
1) Node-based properties:
|
||||
it currently spans the traditional INode properties and the GI properties.
|
||||
This is a convenience interface and provides only control of "coarse" properties:
|
||||
those access iconically in the layer UI.
|
||||
|
||||
2) Additional properties unique to layers: Current.
|
||||
|
||||
3) membership
|
||||
|
||||
CREATED BY: John Hutchinson
|
||||
|
||||
HISTORY: created Aug 6, 2001
|
||||
add Aug 9, 2001 add interface for layermanager
|
||||
add Sept 3, 2001 adding properties for color and GIExclusion
|
||||
|
||||
*> Copyright (c) 2001, All Rights Reserved.
|
||||
**********************************************************************/
|
||||
#ifndef __ILAYERPROPERTIES__H__
|
||||
#define __ILAYERPROPERTIES__H__
|
||||
|
||||
#include "ifnpub.h"
|
||||
|
||||
// The interface ID for class ILayerProperties
|
||||
#define LAYERPROPERTIES_INTERFACE Interface_ID(0x202e0798, 0x3589129b)
|
||||
|
||||
// Provides access to a layer's properties
|
||||
class ILayerProperties : public FPMixinInterface
|
||||
{
|
||||
public:
|
||||
//membership
|
||||
virtual void addNode (INode *) = 0;
|
||||
virtual void select (BOOL) = 0;
|
||||
|
||||
//properties
|
||||
virtual BOOL getCurrent (void) = 0;
|
||||
//The semantics of setCurrent are special,
|
||||
//You can set it to be current, but can't set it _not_ current
|
||||
virtual void setCurrent (BOOL) = 0;
|
||||
|
||||
virtual BOOL getOn (void) = 0;
|
||||
virtual void setOn (BOOL) = 0;
|
||||
virtual BOOL getLock (void) = 0;
|
||||
virtual void setLock (BOOL) = 0;
|
||||
|
||||
//JH 9.03.01
|
||||
virtual Color getWireColor(void) = 0;
|
||||
virtual void setWireColor(Color) = 0;
|
||||
virtual BOOL getGIIsExcluded() const = 0;
|
||||
virtual void setGIIsExcluded(BOOL) = 0;
|
||||
|
||||
//JH 09.28.01
|
||||
virtual TCHAR* getName (void) = 0;
|
||||
// not a property, per se, since it can fail due to uniqueness of layer names
|
||||
virtual BOOL setName (TCHAR *) = 0;
|
||||
|
||||
// 030415 --prs.
|
||||
virtual BOOL Nodes(Tab<INode*>& layerNodes) = 0;
|
||||
};
|
||||
|
||||
#define LAYERMANAGER_INTERFACE Interface_ID(0x77ff1709, 0x19186e96)
|
||||
// Provides access to the layer manager
|
||||
class IFPLayerManager : public FPStaticInterface
|
||||
{
|
||||
public:
|
||||
//access to the layers
|
||||
virtual ILayerProperties* getLayer (int which) = 0;
|
||||
virtual ILayerProperties* newLayer (void) = 0;
|
||||
|
||||
//JH 09.28.01
|
||||
//overloads for access by name
|
||||
virtual ILayerProperties* getLayer (TCHAR *) = 0;
|
||||
virtual ILayerProperties* newLayer (TCHAR *) = 0;
|
||||
|
||||
//
|
||||
//read only properties
|
||||
virtual int getCount (void) = 0;
|
||||
virtual ILayerProperties* getCurrent (void) = 0;
|
||||
//TODO allow purging empty layers
|
||||
};
|
||||
|
||||
#endif //__ILAYERPROPERTIES__H__
|
||||
Reference in New Issue
Block a user