DGtal-team / DGtal

Digital Geometry Tools and Algorithm Library
https://dgtal.org
GNU Lesser General Public License v3.0
370 stars 115 forks source link

Cairo3D->2D mode and camera as stream modifier #47

Closed dcoeurjo closed 13 years ago

dcoeurjo commented 13 years ago

In other DGtal streams (DGtalBoard,..), modifications and mode are set via stream modifier, e.g.:

board << CustomStyle() << aObject

Could it be possible to convert CairoViewers modes into such "stream modes" (e.g. WireFrame, camera position, ...) ?

mtola commented 13 years ago

done in https://github.com/dcoeurjo/DGtal/commit/be3b72db5d2db1cf6b2073e7bb75acc24aacb5d2

dcoeurjo commented 13 years ago

I reopen it to add further details:

Instead of having things such as :

dgtalcairo << ...::Wireframe::yes <<< ...

would it be possible to be consistent with DGtalBoard stream (cf doc):

dgtalcairo << SetMode( ... , ...) << .. ?

mtola commented 13 years ago

done in https://github.com/dcoeurjo/DGtal/commit/87a4a9ff7c2b9b8d0f5d20ad5422b4fc85609948