Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try out VCS plots #16

Open
2 of 4 tasks
remram44 opened this issue May 19, 2015 · 9 comments
Open
2 of 4 tasks

Try out VCS plots #16

remram44 opened this issue May 19, 2015 · 9 comments

Comments

@remram44
Copy link
Member

Getting a simple plot working should be pretty easy, but:

@rexissimus
Copy link
Member

I was able to run DAT with the UV-CDAT libraries by sourcing UV-CDAT. I just had to add tdparser. VTK does not work, but should once we are using VisTrails master.

I created a simple CDMS Variable and a VCS boxplot that plots in a separate window. Integrating the VCS plots with the DAT spreadsheet looks like the hard part. When that is working it should be straightforward to improve the variables and plots.

Since UV-CDAT is using newer libraries it may be worth checking if VCS works with the DAT spreadsheet before looking at #13?

@remram44
Copy link
Member Author

Since UV-CDAT is using newer libraries it may be worth checking if VCS works with the DAT spreadsheet

Do you mean VTK? I think that all VCS plots are embedded as VTKCells.

The merge with master is taking a very long time, I end up manually applying nearly every one of the DAT patches. To be honest I don't know if I'll be done by tomorrow's meeting.

@remram44
Copy link
Member Author

I dropped the code from uvcdat & uvcdat_cdms into a uvcdat_cdms package (branch dat-uvcdat). I just have one variable loader (CDMSVariable from .nc file) and one plot (CDMS3D_Scalar). It seems to work on Linux. As you said I only had to install tdparser in the CDAT environment.

dat-uvcdat

@remram44
Copy link
Member Author

On my macbook:

ERROR: In /Users/remirampin/Documents/programming/uvcdat/builds/d124bd78293d726bbf3d0c91779dfbff0f049ccf/build/VTK/Rendering/OpenGL/vtkOpenGLPolyDataMapper2D.cxx, line 442
vtkOpenGLPolyDataMapper2D (0x7fbbe464a370): failed after RenderOverlay 1 OpenGL errors detected
  0 : (1286) Invalid framebuffer operation

@rexissimus
Copy link
Member

This should be fixed on the use-pixmaps-when-dragging branch.

@rexissimus
Copy link
Member

It seems like you cannot generate plots dynamically in DAT, because they are subworkflows. Do we need to generate a subworkflow for each plot type in vcs?

@remram44
Copy link
Member Author

There is already a way in _variable_operations to specify an operation either with a callback (building the new variable from Python code, through the dat.vistrails_interface:Variable API) or a subworkflow file (there are examples of both in the VTK package). It should be easy to provide both ways for plots as well (though Variable is not the right object there, but some refactoring of vistrails_interface is needed anyway (#15)).

@remram44
Copy link
Member Author

Interestingly VCS doesn't work with use-pixmaps-when-dragging, because it doesn't support saveToPNG(None) done by QVTKWidget#grabWindowPixmap(). I filed this against UV-CDAT already (CDAT/cdat#1276), I'll look into fixing it.

@remram44
Copy link
Member Author

I started a list of requirements on the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants