Public Member Functions | Private Attributes
bvgl_change_obj Class Reference

#include <bvgl_change_obj.h>

List of all members.

Public Member Functions

 bvgl_change_obj (vgl_polygon< double > const &poly)
 bvgl_change_obj (vgl_polygon< double > const &poly, vcl_string cls)
 bvgl_change_obj (const bvgl_change_obj &other)
 bvgl_change_obj ()
 ~bvgl_change_obj ()
void b_write (vsl_b_ostream &os)
 binary IO write.
void b_read (vsl_b_istream &is)
 binary IO read.
unsigned char version () const
 Return IO version number;.
vgl_polygon< double > poly () const
void centroid (double &x, double &y) const
 return the centroid of the polygon.
vcl_string type () const

Private Attributes

vcl_string class_
vgl_polygon< double > poly_

Detailed Description

Definition at line 19 of file bvgl_change_obj.h.


Constructor & Destructor Documentation

bvgl_change_obj::bvgl_change_obj ( vgl_polygon< double > const &  poly) [inline]

Definition at line 22 of file bvgl_change_obj.h.

bvgl_change_obj::bvgl_change_obj ( vgl_polygon< double > const &  poly,
vcl_string  cls 
) [inline]

Definition at line 23 of file bvgl_change_obj.h.

bvgl_change_obj::bvgl_change_obj ( const bvgl_change_obj other)

Definition at line 10 of file bvgl_change_obj.cxx.

bvgl_change_obj::bvgl_change_obj ( ) [inline]

Definition at line 25 of file bvgl_change_obj.h.

bvgl_change_obj::~bvgl_change_obj ( ) [inline]

Definition at line 26 of file bvgl_change_obj.h.


Member Function Documentation

void bvgl_change_obj::b_read ( vsl_b_istream is)

binary IO read.

Definition at line 54 of file bvgl_change_obj.cxx.

void bvgl_change_obj::b_write ( vsl_b_ostream os)

binary IO write.

Definition at line 42 of file bvgl_change_obj.cxx.

void bvgl_change_obj::centroid ( double &  x,
double &  y 
) const

return the centroid of the polygon.

find the centre of this polygon.

Definition at line 25 of file bvgl_change_obj.cxx.

vgl_polygon<double> bvgl_change_obj::poly ( ) const [inline]

Definition at line 37 of file bvgl_change_obj.h.

vcl_string bvgl_change_obj::type ( ) const [inline]

Definition at line 42 of file bvgl_change_obj.h.

unsigned char bvgl_change_obj::version ( ) const

Return IO version number;.

Definition at line 19 of file bvgl_change_obj.cxx.


Member Data Documentation

vcl_string bvgl_change_obj::class_ [private]

Definition at line 46 of file bvgl_change_obj.h.

Definition at line 47 of file bvgl_change_obj.h.


The documentation for this class was generated from the following files: