20 #ifndef KJB_ST_SPHERE_INCLUDED
21 #define KJB_ST_SPHERE_INCLUDED
62 virtual void read(
const char * fname)
const Vector & get_center() const
Returns the center of the sphere.
Definition: st_sphere.h:90
double m_radius
Definition: st_sphere.h:132
Abstract class to write this object to an output stream.
Definition: l_writeable.h:41
void get_point_in_sphere_coordinates(const kjb::Vector &point_in_world_coordinates, kjb::Vector &point_in_sphere_coordinates) const
void set_center(const Vector ¢er)
Sets the center location.
Definition: st_sphere.h:105
void propose_sphere_from_curve()
Abstract class to read this object from an input stream.
Definition: l_readable.h:39
Definition: gr_renderable_model.h:88
Parametric_sphere()
Definition: st_sphere.h:48
virtual void read(const char *fname)
Reads this Readable from a file.
Definition: st_sphere.h:62
double get_center_z() const
Returns the center location z.
Definition: st_sphere.h:87
virtual void update_rendering_representation() const
Updates the rendering interface so that it reflects the paremeter values of this model to the renderi...
r
Definition: APPgetLargeConnectedEdges.m:127
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
virtual void write(std::ostream &out) const =0
Writes this Writeable to an output stream.
virtual Parametric_sphere * clone() const
Processes an Option from program command-line arguments.
Definition: st_sphere.h:77
virtual Abstract_renderable & get_rendering_interface() const
Returns a reference to the rendering interface used to render this model.
Definition: gr_renderable.h:151
double get_center_y() const
Returns the center location y.
Definition: st_sphere.h:84
virtual void read(std::istream &in)
Reads this Readable from an input stream.
Definition: st_sphere.cpp:68
x
Definition: APPgetLargeConnectedEdges.m:100
void get_point_in_world_coordinates(const kjb::Vector &point_in_sphere_coordinates, kjb::Vector &point_in_world_coordinates) const
Transforms a point in parapiped coordinates to world coordinates.
void set_center_z(double z)
Sets the center location z.
Definition: st_sphere.h:102
void set_center_x(double x)
Sets the center location x.
Definition: st_sphere.h:96
double get_center_x() const
Returns the center location x.
Definition: st_sphere.h:81
virtual ~Parametric_sphere()
Definition: st_sphere.h:78
Exception often thrown when wrapped C functions return error codes.
Definition: l_exception.h:262
St_renderable_model Base class for a structure model with a renderable representation.
double get_radius() const
Returns the radius.
Definition: st_sphere.h:93
void set_radius(double r)
Sets the radius.
Definition: st_sphere.h:108
Object thrown when an argument to a function is not acceptable.
Definition: l_exception.h:377
virtual void read(std::istream &in)=0
Reads this Readable from an input stream.
virtual void write(const char *fname) const
Writes this Writeable to a file.
Definition: st_sphere.h:68
Object thrown when input or output fails.
Definition: l_exception.h:496
void set_center_y(double y)
Sets the center location y.
Definition: st_sphere.h:99
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...
virtual Parametric_sphere & operator=(const Parametric_sphere &src)
Definition: st_sphere.h:37
virtual void write(std::ostream &out) const
Save the Sphere parameters into a file.
Definition: st_sphere.cpp:116
Vector m_center_v
Definition: st_sphere.h:131