/********************************************************************/ /* Copyright (c) 2017 System fugen G.K. and Yuzi Mizuno */ /* All rights reserved. */ /********************************************************************/ #ifndef _MGContext_HH_ #define _MGContext_HH_ #include "mg/Pvector.h" #include "mg/Attrib.h" #include "mgGL/Color.h" #include "mgGL/Appearance.h" #include "mgGL/SnapAttrib.h" #include "mgGL/glViewAttrib.h" #include "Tl2/TLInputParam.h" /////////////////////////////////////////////////// class MGOpenGLView; class MGOfstream; class MGIfstream; /** @addtogroup DisplayHandling * @{ */ /// MGContext defines the attributes of a document. ///MGContext includes snap attributes, colors(background, object, highlight), ///smoothness definition data to approximate spline data by a polyline, ///pick-aperture, viewing matrix data of the main view, construction plane's ///attributes, tollerances, and tessellation parameters, and other default appearance data. class MG_DLL_DECLR MGContext: public MGAttrib{ public: MGContext(); MGContext(const MGBox& bx); MGContext( const MGSnapAttrib& snap_attrib,///