// PhBLandscapePhotoBackground.H: PhBLandscapePhotoBackground nodes.

// This file has been generated using nodegen 0.51.
// Restrict manual editing to the sections delimited by
// . the comments "utility includes" and "end of utility includes"
// . the comments "utility members" and "end of utility members"

#ifndef _PhBLandscapePhotoBackground_H_
#define _PhBLandscapePhotoBackground_H_

#include "xrml.H"
#include "PhBBackgroundProjection.H"

// utility includes
// end of utility includes

namespace xrml {
#define PhBLandscapePhotoBackgroundTypeId 	"PhBLandscapePhotoBackground"
extern bool IsPhBLandscapePhotoBackground(SFNode*);

class PhBLandscapePhotoBackground: public virtual SFNode, public PhBBackgroundProjection {
private:
  //
  void clone_here(const PhBLandscapePhotoBackground&);
  void destruct(void);
  
public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  PhBLandscapePhotoBackground();
  PhBLandscapePhotoBackground(const PhBLandscapePhotoBackground&);
  PhBLandscapePhotoBackground& operator=(const PhBLandscapePhotoBackground&);
  virtual ~PhBLandscapePhotoBackground();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // utility members
  Vec3 direction2surface(const Vec3& direction);
  Vec3 surface2direction(const Vec3& surfaceCoord);
  Vec3 start(const Vec3& surfaceCoord);
  Vec3  size(const Vec3& surfaceCoord);
  float area(const Vec3& upleft,
	     const Vec3& upright,
	     const Vec3& downleft,
	     const Vec3& downright);
  float jacobian(const Vec3 &surfaceCoord);
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const PhBLandscapePhotoBackground& src) { }
  inline void util_destruct(void) { }
};

// end of utility members
} // namespace xrml
#endif /*_PhBLandscapePhotoBackground_H_*/
