1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
|
/**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) by Kongsberg Oil & Gas Technologies.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* ("GPL") version 2 as published by the Free Software Foundation.
* See the file LICENSE.GPL at the root directory of this source
* distribution for additional information about the GNU GPL.
*
* For using Coin with software that can not be combined with the GNU
* GPL, and for taking advantage of the additional benefits of our
* support services, please contact Kongsberg Oil & Gas Technologies
* about acquiring a Coin Professional Edition License.
*
* See http://www.coin3d.org/ for more information.
*
* Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
* http://www.sim.no/ sales@sim.no coin-support@coin3d.org
*
\**************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif // HAVE_CONFIG_H
#ifdef HAVE_NODEKITS
/*!
\class SoLightKit SoLightKit.h Inventor/nodekits/SoLightKit.h
\brief The SoLightKit class provides a kit with a transform, a light and a shape or subgraph.
\ingroup nodekits
\NODEKIT_PRE_DIAGRAM
\verbatim
CLASS SoLightKit
-->"this"
"callbackList"
--> "transformGroup"
--> "transform"
--> "light"
--> "iconSeparator"
--> "icon"
\endverbatim
\NODEKIT_POST_DIAGRAM
\NODEKIT_PRE_TABLE
\verbatim
CLASS SoLightKit
PVT "this", SoLightKit ---
"callbackList", SoNodeKitListPart [ SoCallback, SoEventCallback ]
PVT "transformGroup", SoTransformSeparator ---
"transform", SoTransform ---
"light", SoLight --- , (default type = SoDirectionalLight)
PVT "iconSeparator", SoSeparator ---
"icon", SoNode --- , (default type = SoCube)
\endverbatim
\NODEKIT_POST_TABLE
*/
#include <Inventor/nodekits/SoLightKit.h>
#include <Inventor/nodes/SoTransformSeparator.h>
#include <Inventor/nodes/SoTransform.h>
#include <Inventor/nodes/SoDirectionalLight.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoCube.h>
#include "nodekits/SoSubKitP.h"
SO_KIT_SOURCE(SoLightKit);
/*!
Constructor.
*/
SoLightKit::SoLightKit(void)
{
SO_KIT_INTERNAL_CONSTRUCTOR(SoLightKit);
// Note: we must use "" instead of , , to humour MS VisualC++ 6.
SO_KIT_ADD_CATALOG_ENTRY(transformGroup, SoTransformSeparator, TRUE, this, "", FALSE);
SO_KIT_ADD_CATALOG_ENTRY(transform, SoTransform, TRUE, transformGroup, light, TRUE);
SO_KIT_ADD_CATALOG_ABSTRACT_ENTRY(light, SoLight, SoDirectionalLight, FALSE, transformGroup, iconSeparator, TRUE);
SO_KIT_ADD_CATALOG_ENTRY(iconSeparator, SoSeparator, TRUE, transformGroup, "", FALSE);
SO_KIT_ADD_CATALOG_ABSTRACT_ENTRY(icon, SoNode, SoCube, TRUE, iconSeparator, "", TRUE);
SO_KIT_INIT_INSTANCE();
}
/*!
Destructor.
*/
SoLightKit::~SoLightKit()
{
}
// Documented in superclass.
void
SoLightKit::initClass(void)
{
SO_KIT_INTERNAL_INIT_CLASS(SoLightKit, SO_FROM_INVENTOR_1);
}
#endif // HAVE_NODEKITS
|