forked from SINTEF-Geometry/GoTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for volumes and LRSplineSurface (OFF by default).
- Loading branch information
Showing
15 changed files
with
955 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
//=========================================================================== | ||
// | ||
// File: goview_vol_and_lr.C | ||
// | ||
// Created: Fri Feb 8 11:27:13 2013 | ||
// | ||
// Author: Sverre Briseid <[email protected]> | ||
// | ||
// Revision: $Id$ | ||
// | ||
// Description: | ||
// | ||
//=========================================================================== | ||
|
||
#include <utility> | ||
#include <QApplication> | ||
|
||
#include "GoTools/viewlib/vol_and_lr/DataHandlerVolAndLR.h" | ||
#include "GoTools/viewlib/gvApplication.h" | ||
|
||
|
||
/** An application for viewing spline surfaces and other geometrical objects. | ||
* | ||
* The program is based on the QT toolkit, OpenGL and Sintef's Go toolkit. | ||
* | ||
* This version adds support for volumes and LRSplines. | ||
* | ||
*/ | ||
|
||
//int less_largest_x_cntr=0, less_largest_y_cntr=0, less_smallest_y_cntr=0; | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
// // Use the generic app object | ||
QApplication theapp(argc, argv); | ||
|
||
// Create our main widget | ||
std::auto_ptr<DataHandler> dh(new DataHandlerVolAndLR); | ||
gvApplication* appwidget = new gvApplication(dh, NULL, argv[0]); | ||
|
||
appwidget->resize(500, 530); | ||
// appwidget->resize(1300, 1100); | ||
appwidget->show(); | ||
// theapp.setMainWidget(appwidget); | ||
theapp.setActiveWindow(appwidget); | ||
|
||
int return_value=theapp.exec(); | ||
return return_value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
viewlib/include/GoTools/viewlib/vol_and_lr/DataHandlerVolAndLR.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//=========================================================================== | ||
// | ||
// File: DataHandlerVolAndLR.h | ||
// | ||
// Created: Fri Feb 8 16:21:46 2013 | ||
// | ||
// Author: Sverre Briseid <[email protected]> | ||
// | ||
// Revision: $Id$ | ||
// | ||
// Description: | ||
// | ||
//=========================================================================== | ||
|
||
#ifndef _DATAHANDLERVOLANDLR_H | ||
#define _DATAHANDLERVOLANDLR_H | ||
|
||
#include "GoTools/viewlib/DefaultDataHandler.h" | ||
|
||
class DataHandlerVolAndLR : public DefaultDataHandler | ||
{ | ||
public: | ||
/// Default constructor. Initializes factory (by registering classes). | ||
DataHandlerVolAndLR(); | ||
virtual ~DataHandlerVolAndLR(); | ||
|
||
virtual void create(shared_ptr<Go::GeomObject> obj, | ||
const gvColor& col, int id); | ||
}; | ||
|
||
#endif // _DATAHANDLERVOLANDLR_H | ||
|
Oops, something went wrong.