EffectColor.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Geometry
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2013, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeGeometry/Base.h"
16 
17 #include "CeeGeometry/Effect.h"
18 
19 #include "CeeCore/Color3f.h"
20 
21 namespace cee {
22 namespace geo {
23 
24 
25 //==================================================================================================
26 //
27 //
28 //
29 //==================================================================================================
30 class CEE_GEO_EXPORT EffectColor : public Effect
31 {
32 public:
33  EffectColor();
34  EffectColor(const Color3f& color);
35  virtual ~EffectColor();
36 
37  virtual Type type() const;
38  virtual PtrRef<Effect> clone();
39 
40  const Color3f& color() const;
41  void setColor(const Color3f& color);
42 
43  float ambientIntensity() const;
44  void setAmbientIntensity(float intensity);
45 
46  float specularIntensity() const;
47  void setSpecularIntensity(float intensity);
48 
49 private:
50  CEE_PRIVATE_IMPL(EffectColor);
51  CEE_PRIVATE_F(GeometryModel);
52  CEE_PRIVATE_F(PartSettings);
53  CEE_PRIVATE_F(PartClassification);
54  CEE_DISALLOW_COPY_AND_ASSIGN(EffectColor);
55 };
56 
57 } // namespace geo
58 } // namespace cee
59 
Part settings represents how to draw a part and it&#39;s associated part data.
Definition: PartSettings.h:29
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Smart pointer class used for handling reference counted objects (that derive from Object)...
Definition: PtrRef.h:26
Effect describing the color to be used when drawing the associated part data.
Definition: EffectColor.h:30
Class for storing an RGB color triplet.
Definition: Color3f.h:25
GeometryModel is a subclass of Model that can handle a large number of parts efficiently.
Definition: GeometryModel.h:36
Type
Enumerator for each of the available effect types.
Definition: Effect.h:32
Base class for an effect describing how to draw a part and it&#39;s associated part data.
Definition: Effect.h:28