Free Electron
SurfaceAccessiblePtex.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __ptex_SurfaceAccessiblePtex_h__
8 #define __ptex_SurfaceAccessiblePtex_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief Ptex Surface Binding
16 
17  @ingroup ptex
18 *//***************************************************************************/
19 class FE_DL_EXPORT SurfaceAccessiblePtex:
21 {
22  public:
23  SurfaceAccessiblePtex(void) {}
24 virtual ~SurfaceAccessiblePtex(void) {}
25 
26  //* as SurfaceAccessibleI
27 
28 virtual BWORD isBound(void)
29  { return (m_texelArray.size()>1); }
30 
32 
33 virtual sp<SurfaceAccessorI> accessor(String a_node,Element a_element,
34  String a_name,
35  Creation a_create,Writable a_writable);
36 
37 virtual sp<SurfaceAccessorI> accessor(String a_node,Element a_element,
38  Attribute a_attribute,
39  Creation a_create,Writable a_writable);
40 
42 
43 virtual BWORD load(String a_filename,
44  sp<Catalog> a_spSettings);
45 
46  using SurfaceAccessibleBase::attributeSpecs;
47 
48 virtual void attributeSpecs(
50  a_rSpecs,
51  String a_node,
52  SurfaceAccessibleI::Element
53  a_element) const;
54 
55  class Texel
56  {
57  public:
58  SpatialVector m_location;
59  Color m_color;
60  };
61 
62  protected:
63 
64 virtual void reset(void);
65 
66  private:
67  Array<Texel> m_texelArray;
68 };
69 
70 } /* namespace ext */
71 } /* namespace fe */
72 
73 #endif /* __ptex_SurfaceAccessiblePtex_h__ */
Common Functionality for Accessible Surface.
Definition: SurfaceAccessibleBase.h:20
kernel
Definition: namespace.dox:3
Special vector for color (RGBA)
Definition: Color.h:21
virtual BWORD isBound(void)
Return true if surface is available.
Definition: SurfaceAccessiblePtex.h:28
Ptex Surface Binding.
Definition: SurfaceAccessiblePtex.h:19
Automatically reference-counted string container.
Definition: String.h:128
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
virtual BWORD load(String a_filename)
load model data from file
Definition: SurfaceAccessibleBase.h:45
virtual sp< SurfaceAccessorI > accessor(String a_node, Element a_element, String a_name, Creation a_create, Writable a_writable)
Return access to an attribute.
Definition: SurfaceAccessibleBase.h:87