CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbLight.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24
25#ifndef __OD_DB_LIGHT__
26#define __OD_DB_LIGHT__
27
28#include "TD_PackPush.h"
29
30#include "DbEntity.h"
31#include "Gi/GiLightTraits.h"
32
40{
41public:
43
48
50 {
51 kPeakIntensity = 0,
53 kIlluminance
54 };
55
60 {
62 kKelvin = 0,
64 kPreset
65 };
66
71 {
73 kD65White = 0,
101 kCustom
102 };
103
108 {
110 kGlyphDisplayAuto = 0,
114 kGlyphDisplayOff
115 };
116
135 OdDbDwgFiler* pFiler);
136
152 virtual void dwgOutFields(
153 OdDbDwgFiler* pFiler) const;
154
173 OdDbDxfFiler* pFiler);
174
190 virtual void dxfOutFields(
191 OdDbDxfFiler* pFiler) const;
192
201 const OdGeMatrix3d& xfm);
202
221 virtual OdResult subErase(bool erasing);
222
230 virtual void subHighlight(bool bDoIt = true, const OdDbFullSubentPath* pSubId = 0, bool highlightAll = false) const;
231
235 virtual DrawableType drawableType() const;
236
250
259 virtual bool subWorldDraw(OdGiWorldDraw* pWd) const;
260
268 virtual void subViewportDraw(OdGiViewportDraw* pVd) const;
269
273 OdString name() const;
274
281
286
293
300 bool isOn() const;
301
307 void setOn(bool value);
308
315 bool isPlottable() const;
316
322 void setIsPlottable(bool plot);
323
328
334 void setLightColor(const OdCmColor& color);
335
339 double intensity() const;
340
346 void setIntensity(double intensity);
347
354
359
366
371
377 void setPosition(const OdGePoint3d& pos);
378
383
391
397 void setTargetLocation(const OdGePoint3d& newVal);
398
405 void setHotspotAndFalloff(double hotspot, double falloff);
406
410 double hotspotAngle() const;
411
415 double falloffAngle() const;
416
421
427 void setLightDirection(const OdGeVector3d& lightvec);
428
429 // Photometric properties
430
435
442
446 double physicalIntensity() const;
447
453 void setPhysicalIntensity(double physIntensity);
454
458 double illuminanceDistance() const;
459
465 void setIlluminanceDistance(double illumDistance);
466
472
480
484 double lampColorTemp() const;
485
491 void setLampColorTemp(double colorTemp);
492
497
504
509
515 void setLampColorRGB(const OdGiColorRGB &color);
516
521
526
532 void setWebFile(const OdString &webFile);
533
538
544 void setWebRotation(const OdGeVector3d &rotation);
545
549 bool hasTarget() const;
550
556 void setHasTarget(bool bTarget);
557
562
569
570 OdResult subGetClassID(void* pClsid) const;
571};
572
577
578#include "TD_PackPop.h"
579
580#endif // __OD_DB_LIGHT__
#define SCENEOE_EXPORT
Definition: DbExport.h:56
OdSmartPtr< OdDbLight > OdDbLightPtr
Definition: DbLight.h:576
unsigned int OdUInt32
OdResult
Definition: OdResult.h:29
OdGeVector3d lightDirection() const
virtual void subViewportDraw(OdGiViewportDraw *pVd) const
OdGiColorRGB lampColorRGB() const
LampColorType
Definition: DbLight.h:60
LampColorType lampColorType() const
void setHasTarget(bool bTarget)
double physicalIntensity() const
void setLightDirection(const OdGeVector3d &lightvec)
GlyphDisplayType
Definition: DbLight.h:108
@ kGlyphDisplayOn
Definition: DbLight.h:112
void setIlluminanceDistance(double illumDistance)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdGeVector3d webRotation() const
LampColorPreset lampColorPreset() const
void setTargetLocation(const OdGePoint3d &newVal)
void setIntensity(double intensity)
OdString name() const
virtual OdResult subErase(bool erasing)
double intensity() const
virtual DrawableType drawableType() const
PhysicalIntensityMethod
Definition: DbLight.h:50
@ kFlux
Definition: DbLight.h:52
double lampColorTemp() const
bool isPlottable() const
PhysicalIntensityMethod physicalIntensityMethod() const
OdString webFile() const
OdCmColor resultingColor() const
void setName(OdString name)
ODDB_DECLARE_MEMBERS(OdDbLight)
const OdGiShadowParameters & shadowParameters() const
void setIsPlottable(bool plot)
void setPhysicalIntensity(double physIntensity)
bool hasTarget() const
void setHotspotAndFalloff(double hotspot, double falloff)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void setOn(bool value)
const OdGiLightAttenuation & lightAttenuation() const
void setPhysicalIntensityMethod(PhysicalIntensityMethod physIntMethod)
OdGePoint3d position() const
void setLightColor(const OdCmColor &color)
OdGePoint3d targetLocation() const
double hotspotAngle() const
double illuminanceDistance() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
double falloffAngle() const
void setPosition(const OdGePoint3d &pos)
void setLightType(OdGiDrawable::DrawableType type)
void setWebRotation(const OdGeVector3d &rotation)
OdCmColor lightColor() const
void setShadowParameters(const OdGiShadowParameters &params)
OdGiDrawable::DrawableType lightType() const
virtual OdResult subTransformBy(const OdGeMatrix3d &xfm)
bool isOn() const
GlyphDisplayType glyphDisplay() const
void setGlyphDisplay(GlyphDisplayType type)
void setLampColorTemp(double colorTemp)
virtual void subHighlight(bool bDoIt=true, const OdDbFullSubentPath *pSubId=0, bool highlightAll=false) const
void setLampColorPreset(LampColorPreset colorPreset)
OdResult subGetClassID(void *pClsid) const
void setLampColorRGB(const OdGiColorRGB &color)
LampColorPreset
Definition: DbLight.h:71
@ kMercury
Definition: DbLight.h:93
@ kFluorescent
Definition: DbLight.h:75
@ kQuartz
Definition: DbLight.h:89
@ kHalogen
Definition: DbLight.h:87
@ kXenon
Definition: DbLight.h:85
@ kMetalHalide
Definition: DbLight.h:91
@ kIncandescent
Definition: DbLight.h:83
@ kCoolWhite
Definition: DbLight.h:77
@ kPhosphorMercury
Definition: DbLight.h:95
@ kLowPressureSodium
Definition: DbLight.h:99
@ kWhiteFluorescent
Definition: DbLight.h:79
@ kDaylightFluorescent
Definition: DbLight.h:81
@ kHighPressureSodium
Definition: DbLight.h:97
void setLampColorType(LampColorType colorType)
virtual bool subWorldDraw(OdGiWorldDraw *pWd) const
void setWebFile(const OdString &webFile)
void setLightAttenuation(const OdGiLightAttenuation &params)
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *pTraits) const
GLenum GLint * params
Definition: gles2_ext.h:184
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
GLsizei const GLfloat * value
Definition: gles2_ext.h:302