Open Reality Reference Guide
 
Loading...
Searching...
No Matches
fbrenderercallbacklayout.h
Go to the documentation of this file.
1#ifndef __FBRENDERERCALLBACKLAYOUT_H__
2#define __FBRENDERERCALLBACKLAYOUT_H__
3/**************************************************************************
4 Copyright (c) 1994 - 2009 Autodesk, Inc. and/or its licensors.
5 All Rights Reserved.
6
7 The coded instructions, statements, computer programs, and/or related
8 material (collectively the "Data") in these files contain unpublished
9 information proprietary to Autodesk, Inc. and/or its licensors, which is
10 protected by Canada and United States of America federal copyright law
11 and by international treaties.
12
13 The Data may not be disclosed or distributed to third parties, in whole
14 or in part, without the prior written consent of Autodesk, Inc.
15 ("Autodesk").
16
17 THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY.
18 ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO
19 WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR
20 ARISING BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES
21 OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
22 PURPOSE OR USE. WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT
23 WARRANT THAT THE OPERATION OF THE DATA WILL BE UNINTERRUPTED OR ERROR
24 FREE.
25
26 IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS
27 OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR
28 EXPENSES OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE
29 DAMAGES OR OTHER SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS
30 OF PROFITS, REVENUE OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR
31 DAMAGES OF ANY KIND), HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF
32 LIABILITY, WHETHER DERIVED FROM CONTRACT, TORT (INCLUDING, BUT NOT
33 LIMITED TO, NEGLIGENCE), OR OTHERWISE, ARISING OUT OF OR RELATING TO THE
34 DATA OR ITS USE OR ANY OTHER PERFORMANCE, WHETHER OR NOT AUTODESK HAS
35 BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.
36
37**************************************************************************/
38
43#include <kaydaradef.h>
44#ifndef FBSDK_DLL
48 #define FBSDK_DLL K_DLLIMPORT
49#endif
50
51#include <kaydara.h>
52
53// Core includes
54#include <fbsdk/fbrenderer.h>
55
56// UI includes
58
59// Namespace declaration
60#ifdef FBSDKUseNamespace
61 namespace FBSDKNamespace {
62#endif
63
69#define FBRegisterRendererCallbackLayout( ClassName,UniqueNameStr, IconFilename ) \
70 HIObject RegisterRendererCallbackLayout##ClassName( HIObject /*pOwner*/,const char * /*pName*/,void *pData) \
71 {\
72 ClassName *Class = new ClassName( (FBRendererCallback*)FBGetFBComponent((HIObject)pData) ); \
73 Class->mAllocated = true; \
74 if (Class->FBCreate()) { \
75 return Class->GetHIObject(); \
76 } else { \
77 delete Class; \
78 return NULL; \
79 } \
80 } \
81 FBLibraryModule( ClassName ) \
82 { \
83 FBRegisterObject( ClassName,"renderer/callback/ui",UniqueNameStr,UniqueNameStr" RendererCallback Layout",RegisterRendererCallbackLayout##ClassName, true, IconFilename ); \
84 }
85
90#define FBRendererCallbackLayoutDeclare( ClassName,Parent ) \
91 FBClassDeclare( ClassName,Parent ); \
92 public: \
93 ClassName(FBRendererCallback* pRendererCallback):Parent(pRendererCallback) { FBClassInit; } \
94 private:
95
99#define FBRendererCallbackLayoutImplementation( ThisComponent ) \
100 FBClassImplementation( ThisComponent )
101
103// FBRendererCallbackLayout - Layout for a shader.
106FB_DEFINE_COMPONENT( FBSDK_DLL, RendererCallbackLayout );
109{
111
112public:
116 FBRendererCallbackLayout( FBRendererCallback* pRendererCallback = NULL );
117
118 FBPropertyRendererCallback RendererCallback;
119};
120
121#ifdef FBSDKUseNamespace
122 }
123#endif
124#endif
Used to build the user interface.
Definition fbcontrols.h:781
Open Reality renderer callback interface.
Definition fbrenderer.h:311
RendererCallback layout class.
FBPropertyRendererCallback RendererCallback
Property : RendererCallback.
FBRendererCallbackLayout(FBRendererCallback *pRendererCallback=NULL)
Constructor.
#define __FBClassDeclare(Name, Parent)
For internal use only.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
Contains the user interface components for the SDK.
#define FB_DEFINE_COMPONENT(DllTag, Type)
Define a component and give it the ability to be a property.
Rendering engine.
#define __FB_FORWARD(ClassName)
Forwarding of class and typedef declaration.
Definition fbtypes.h:68