perspective3d.h revision fcb73bdf080e1820499c5bd5c0aaf818dba78c06
/*
* Class modelling a 3D perspective
*
* Authors:
* Maximilian Albert <Anhalter42@gmx.de>
*
* Copyright (C) 2007 authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef SEEN_PERSPECTIVE3D_H
#define SEEN_PERSPECTIVE3D_H
#include "vanishing-point.h"
~Perspective3D();
SPDesktop * desktop; // we need to store the perspective's desktop to be able to access it in the destructor
};
NR::Point perspective_intersection (NR::Point pt1, Box3D::Axis dir1, NR::Point pt2, Box3D::Axis dir2, Perspective3D *persp);
NR::Point perspective_line_snap (NR::Point pt, Box3D::Axis dir, NR::Point ext_pt, Perspective3D *persp);
} // namespace Box3D
/** A function to print out the VanishingPoint (prints the coordinates) **/
/***
inline std::ostream &operator<< (std::ostream &out_file, const VanishingPoint &vp) {
out_file << vp;
return out_file;
}
***/
#endif /* !SEEN_PERSPECTIVE3D_H */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :