Re: [Paraview] Moving slice with particle

2010-02-22 Thread Thorsten Hater

Here my probably faulty python code:

slice = vtk.vtkCutter()

plane = vtk.vtkPlane()

plane.SetOrigin(0,0,0)

plane.SetNormal(0,1,0)

slice.SetCutFunction(plane)

slice.SetInput(field)

slice.Update()

out.SetFieldData(slice.GetFieldData())


The result is an empty Output Window popping up along with an empty 
output field.




Am 20.02.2010 02:08, schrieb Berk Geveci:
To make sure that I understand, vtkCutter does not work, right? Why? 
Are you trying to extract a cut/slice or a subset with constant i, j 
or k from an image data?


-berk

On Fri, Feb 19, 2010 at 10:12 AM, Thorsten Hater > wrote:


Thanks for this! But contrary to my earlier optimism it seems not
so easy to
use a slice filter in a programmable filter (I played mostly with
the pvpython
 up to this point)
The python vtk module does not export ExtractVOI or ImageSlice filter,
the generic cutter does not work for me.
If I import paraview.simple a new connection pops up and PV itself
is messed up,
so I can't use simple's Slice. Can I work around this behaviour?


Am 19.02.2010 01:42, schrieb Berk Geveci:

self.GetInputDataObject(0, n)

should return the nth input.

-berk

On Thu, Feb 18, 2010 at 4:45 PM, Thorsten Hater mailto:t...@tp1.rub.de>> wrote:

Most of building blocks I was able to figure out, but how do
I retrieve the second input from the servermanager?

Berk Geveci wrote:
> It is definitely doable with the programmable filter
although not as
> trivial as it would be with a tool like VisTrails. The
programmable
> filter can accept multiple inputs. You could use the point
from on of
> its inputs to setup the parameter of an internal slice
filter - which
> requires importing the vtk.graphics module. If you can't
figure it
> out, let me know, I'll help.
>
> -berk
>
> On Wed, Feb 17, 2010 at 10:46 AM, Thorsten Hater
mailto:t...@tp1.rub.de>
> >> wrote:
>
> Hello,
>
> I have encountered the following problem in a set of
animations:
> There is a moving particle in a field and I want to
slice the field
> at the particle's position (effectively the y-component
of the
> position).
> Additionally the slice should move automatically with
the particle
> for making an animation.
> Has anybody done something like this before?
> The programmable filter seems a good point to start,
but I need
> at least two inputs for figuring out the offset.
> Thanks in advance for any pointers or help!
>
> Cheers,
>   Thorsten
>
> --
> Thorsten Hater
> Institut fuer Theoretische Physik I
> Ruhr-Universitaet Bochum
> E-Mail: t...@tp1.rub.de 
>
> Tel.: 0234/32-23-441
>
> ___
> Powered by www.kitware.com 

>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView
Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>

___
Powered by www.kitware.com 

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview





-- 
Thorsten Hater

Institut fuer Theoretische Physik I
Ruhr-Universitaet Bochum
E-Mail:t...@tp1.rub.de  
Tel.: 0234/32-23-441


___
Powered by www.kitware.com 

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview





--
Thorsten Hater
Institut fuer Theoretische Physik I
Ruhr-Universitaet Bochum
E-Mail: t...@tp1.rub.de
Tel.: 0234/32-23-441

__

Re: [Paraview] Building paraview with shared libraries on

2010-02-22 Thread Anton Shterenlikht
On Fri, Feb 19, 2010 at 09:32:00AM -0500, Utkarsh Ayachit wrote:
> YOu may have to do a clean build.

Jacob, a "clean build" typically means "make clean" or
"make distclean" before you build again with shared libs.
If these targets are not available, you may need to
remove the whole of the paraview build tree, or start
afresh in a new directory, starting from extracting the source
from the tar file.

anton

> 
> On Fri, Feb 19, 2010 at 9:27 AM, J Cook  wrote:
> > Hi
> > I am currently trying to build paraview from the source code with shared
> > libraries on. I was able to build this code using CMake 2.8.0 and microsoft
> > visual studio 9 before however BUILD_SHARED_LIBS was off. When I turn this
> > value to on I am still able to generate the files in CMake but I get
> > errors whilst building paraview in visual studio.
> >
> > The main errors are;
> >
> > vtkCommon,
> > c:\paraview3\vtk\common\vtkDataArrayTemplate.h(318) : error C4430: missing
> > type specifier - int assumed. Note: C++ does not support default-int
> >
> > vtkFiltering,
> > c:\paraviewtrunk_mpi1659\vtk\common\vtkArrayIteratorTemplate.txx(32) :
> > error C2491: 'vtkArrayIteratorTemplate::New' : definition of dllimport
> > function not allowed
> > a block of similar errors is created following this error.
> >
> >
> > Thanks for any help in advance.
> > Jacob Cook
> >
> >
> > --
> >
> >
> > ___
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at 
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at: 
> > http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> >
> ___
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
> 
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] problem with new representation plugin

2010-02-22 Thread Paul Edwards
Hi,

I have compiled the representation plugin in the CVS and I have the problem
that I cannot change the colour for the "Special Mapper" in the Object
Inspector's "Display" panel.  This seems to be due to the display properties
being for the surface representation rather than the wireframe (it shows
"Set Solid Color..." rather than "Set Ambient Color...").  Does anyone know
who to fix this?

Thanks in advance,
Paul
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Using data in Calculator from multiple sources

2010-02-22 Thread Matthew Cragun
I am using one mesh that is deforming in time.  So node1.mesh2 is the the
same node as node1.mesh1, just in a different location in space.

But your point is well made that if I were using unrelated meshes (i.e.
roughly similar geometry but with a different number of nodes in each mesh)
finding the closest node would be a good way to go.

Best Regards,

-- 
Matt Cragun

Engineer
TotalSim LLC
7003 Post Road,
Suite 415
Dublin, Ohio 43016
O: (614) 255-7426
M: (801) 404-6021
E: mcra...@totalsim.us
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Volume reader

2010-02-22 Thread Sébastien Lasserre
Hello everyone,

I am trying to write a VTK reader to read custom volumetric data into Paraview.

I started with the example vtkImageAlgorithm
(http://www.itk.org/Wiki/VTK_Examples_vtkImageAlgorithm_Filter) and
changed it so the Filter doesn't take any input and output a
vtkImageData.

To simplify, I generate a vtkImageData with constant values in the
RequestData method of my filter and assign it to the output using
output->ShallowCopy(imageData) at the end of the method.

When I tried to use this reader as plugin in Paraview, the views
(Outline, Volume) of the data are not working because the dimension of
the vtkImageData are null.

I tried to use the same filter in a VTK code. The output has a
dimension and I can print the content of the vtkImageData. If I add a
Outline actor, I am able to see the extend of the data but if I attach
a Volume actor, I get this error during the runtime :

 terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

If I copy the content of the output into a new vtkImageData, then I am
able to see the data using the Volume Actor and I don't get anymore
the error.

Did I forget something while declaring my filter ?

I attached the header and implementation file of my filter and the
main.cxx for the VTK test.

I am using Paraview 3.7.0 on Ubuntu 9.10.

Thanks for your help,

Sebastien

Aborted
#ifndef __vtkImageAlgorithmFilter_h
#define __vtkImageAlgorithmFilter_h
 
#include "vtkImageAlgorithm.h"
 
class vtkImageAlgorithmFilter : public vtkImageAlgorithm 
{
public:
  vtkTypeRevisionMacro(vtkImageAlgorithmFilter,vtkImageAlgorithm);
  //void PrintSelf(ostream& os, vtkIndent indent);
 
  static vtkImageAlgorithmFilter *New();
 
protected:
  vtkImageAlgorithmFilter();
  ~vtkImageAlgorithmFilter();
 
  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
 
private:
  vtkImageAlgorithmFilter(const vtkImageAlgorithmFilter&);  // Not implemented.
  void operator=(const vtkImageAlgorithmFilter&);  // Not implemented.
 
};
 
#endif
#include "vtkImageAlgorithmFilter.h"
 
#include "vtkImageData.h"
 
#include "vtkObjectFactory.h"
#include "vtkStreamingDemandDrivenPipeline.h"
#include "vtkInformationVector.h"
#include "vtkInformation.h"
#include "vtkDataObject.h"
#include "vtkSmartPointer.h"
 
vtkCxxRevisionMacro(vtkImageAlgorithmFilter, "$Revision: 1.70 $");
vtkStandardNewMacro(vtkImageAlgorithmFilter);
 
vtkImageAlgorithmFilter::vtkImageAlgorithmFilter()
{
   this->SetNumberOfInputPorts(0);
  this->SetNumberOfOutputPorts(1);

}
 
vtkImageAlgorithmFilter::~vtkImageAlgorithmFilter()
{
 
}
 
int vtkImageAlgorithmFilter::RequestData(vtkInformation *vtkNotUsed(request),
 vtkInformationVector **inputVector,
 vtkInformationVector *outputVector)
{

  // generate data
  vtkSmartPointer < vtkImageData > imageData = vtkSmartPointer::New();
//specify the size of the image data
imageData->SetDimensions(10,10,10);
imageData->SetNumberOfScalarComponents(1);
imageData->SetScalarTypeToUnsignedChar();

int* dims = imageData->GetDimensions();

cout << "Dims: " << " x: " << dims[0] << " y: " << dims[1] << " z: " << dims[2] << endl;
cout << "Number of points: " << imageData->GetNumberOfPoints() << endl;
cout << "Number of cells: " << imageData->GetNumberOfCells() << endl;

for (int z = 0; z < dims[2]; z++)
  {
for (int y = 0; y < dims[1]; y++)
{
for (int x = 0; x < dims[0]; x++)
  {
  unsigned char* pixel = static_cast(imageData->GetScalarPointer(x,y,z));
  pixel[0] = 'e';
  }
}
  }

 
  // get the info objects
  vtkInformation *outInfo = outputVector->GetInformationObject(0);
 
  vtkImageData *output = vtkImageData::SafeDownCast(
  outInfo->Get(vtkDataObject::DATA_OBJECT()));
 
  output->ShallowCopy(imageData);
 
  return 1;
}

#include 

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

 
#include "vtkImageAlgorithmFilter.h"
#include "vtkImageData.h"
 
void PrintImage(vtkImageData* image);
 
int main (int argc, char *argv[])
{
  vtkSmartPointer filter = vtkSmartPointer::New();
  //filter->SetInput(input);
  filter->Update();
 
  vtkImageData* output = filter->GetOutput();
 
  vtkstd::cout << "Output image: " << vtkstd::endl;
  PrintImage(output);

// bounding box  
vtkSmartPointer outline = vtkSmartPointer::New();  
outline->SetInput( output );  
vtkSmartPointer outlineMapper = vtkSmartPointer::New();  
outlineMapper->SetInput( outline->GetOutput() );
vtkSmartPointer outlineActor = vtkSmartPointer::New();
outlineActor->SetMapper( outlineMapper );

   // volume
vtkSmartPointer opacityTransferFunction
= vtkSmartPointer::New();
   opacityTransf

Re: [Paraview] problem with new representation plugin

2010-02-22 Thread Utkarsh Ayachit
One solution is to share common properties with the
SurfaceRepresentation sub-proxy using the  tag. You
can add exceptions (you will have to add exceptions for Input,
Representation properties at the least).

Utkarsh

On Mon, Feb 22, 2010 at 7:48 AM, Paul Edwards  wrote:
> Hi,
> I have compiled the representation plugin in the CVS and I have the problem
> that I cannot change the colour for the "Special Mapper" in the Object
> Inspector's "Display" panel.  This seems to be due to the display properties
> being for the surface representation rather than the wireframe (it shows
> "Set Solid Color..." rather than "Set Ambient Color...").  Does anyone know
> who to fix this?
> Thanks in advance,
> Paul
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] problem with new representation plugin

2010-02-22 Thread Paul Edwards
I can't see how this is possible through the SharedProperties as the color
combo box that is displayed in the "Display Properties" is chosen from the
result of pqPipelineRepresentation::getRepresentationType()  (from the call
in pqDisplayProxyEditor.cxx line 695).  This will default to
vtkSMPVRepresentationProxy::SURFACE for all user defined representations
inheriting from SurfaceRepresentation type - really this should be checking
the subtype ID that is specified in the XML file, although I'm not quite
sure how this can be done

Can you get it to work with the example plugin?

Thanks,
Paul

On 22 February 2010 15:05, Utkarsh Ayachit wrote:

> One solution is to share common properties with the
> SurfaceRepresentation sub-proxy using the  tag. You
> can add exceptions (you will have to add exceptions for Input,
> Representation properties at the least).
>
> Utkarsh
>
> On Mon, Feb 22, 2010 at 7:48 AM, Paul Edwards 
> wrote:
> > Hi,
> > I have compiled the representation plugin in the CVS and I have the
> problem
> > that I cannot change the colour for the "Special Mapper" in the Object
> > Inspector's "Display" panel.  This seems to be due to the display
> properties
> > being for the surface representation rather than the wireframe (it shows
> > "Set Solid Color..." rather than "Set Ambient Color...").  Does anyone
> know
> > who to fix this?
> > Thanks in advance,
> > Paul
> > ___
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> > http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> >
> >
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Error in ParaView CVS Head with CMake Configuration

2010-02-22 Thread Michael Jackson

Pulled the latest CVS Head from GitHub? Is that really the latest?

 When I tried to configure ParaView with my plugins using  
PARAVIEW_EXTRA_EXTERNAL_MODULES I get the following error:


-- Plugin: IPFFilter enabled
CMake Error: File /Components/pqObjectPanelImplementation.h.in does  
not exist.
CMake Error at /Users/Shared/Kitware-CVS/ParaView/CMake/ 
ParaViewPlugins.cmake:281 (CONFIGURE_FILE):

  configure_file Problem configuring file
Call Stack (most recent call first):
  /Users/mjackson/Workspace/PVMXADataModel/Source/Client/IPFFilter/ 
CMakeLists.txt:93 (ADD_PARAVIEW_OBJECT_PANEL)


IPFFilter is my own plugin. The problem is that ParaView_QT_DIR is NOT  
defined at the point where my CMake code is executed. Looking at the  
top level CMakeLists.txt file I see that the Plugins are loaded at  
line 238 (INCLUDE(ParaViewCommon)) which then picks up my code. The  
problem is that ParaView_QT_DIR is NOT defined until line 272 in the  
top level CMakeLists.txt file. This causes problems for my external  
modules because I have Qt code that needs to be compiled.


  Is this a bug or am I just missing something?

___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Custom Filters NOT showing up in Filters List (CVS HEAD)

2010-02-22 Thread Michael Jackson
I have some custom filters that I have developed. I use the  
"PARAVIEW_EXTRA_EXTERNAL_MODULES" to compile them directly into  
ParaView. I know they are getting compiled as I can see the compile  
command go by on the command line. The problem is that they do not  
show up when I run ParaView in the filter list. Here is an example XML  
File:



  

  
  


Which is added like so in my CMake files:
# -- Add the Client side xml
set(IPFFilterClient_XML ${PVMXADataModel_SOURCE_DIR}/Source/Client/ 
IPFFilter/Resources/IPFFilter_GUI.xml)

PARAVIEW_INCLUDE_GUI_RESOURCES( "${IPFFilterClient_XML}" )

This works just fine with ParaView 3.6.2. This was a completely clean  
build.


Suggestions? Thanks.
___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Qt 4.6 Cocoa Strangeness with ParaView 3.6.2

2010-02-22 Thread Michael Jackson

Utkarsh,
  I was able to pull the latest CVS HEAD for ParaView and compiled  
that against the Qt 4.6.1 Cocoa build that I have and it seems that  
what ever was changed on CVS HEAD fixed the problem.


Thanks for the heads up.
___
Mike Jackson  www.bluequartz.net

On Feb 19, 2010, at 4:49 PM, Utkarsh Ayachit wrote:


We've started supporting Cocoa only with ParaView CVS (and in future
with 3.8). Can you see if you can reproduce the issue with CVS? There
have been several fixes to CVS to work with Cocoa.

Utkarsh

On Fri, Feb 19, 2010 at 4:37 PM, Michael Jackson
 wrote:
I'll state up front that I know 3.6.2 only officially supports Qt  
4.3.x but

I'll go ahead with my bug report/question any ways.

 So I built Qt 4.6.1 with Cocoa (OS X) and then compiled ParaView  
3.6.2 from
source using shared libraries. Everything compiles fine. ParaView  
then
launches fine. I setup up some sort of pipeline (Does not matter  
what) then
the strangeness happens. For example, load up a Box source, then  
glyph it.


 Now, click on the "Glyph1" to activate it. Now, click on the  
Display tab to
adjust some parameter (Again, does not matter what). Now Click back  
on the
"Box1" in the Pipeline Browser. Now try to click on the  
"Properties" or
"Information" tabs. What happens is that the Object inspector  
windows goes

blank and the Pipeline Browser elements all become un-selected.

 It seems the only way to select a new element in the Pipeline  
browser and
have it "stick" to to actually double-click on a pipeline browser  
element.

Then you can select something in the "Object Inspector" area.

 If I build with Qt 4.6.1 with Carbon none of this happens. I will  
assume
that this is a problem with Qt itself since switching to Qt/Carbon  
seems to
fix the problem. Just wondering if anyone else has seen this  
behavior. I can
reproduce it on a Mac Pro (Xeon 5500 with ATI 4870) and a MacBook  
Pro with

nVidea 8600m graphics.

 What I have not tried is to go back to Qt 4.5.3 Cocoa/Carbon and  
try those

to see if they work/don't work.

Thanks for any feedback.
___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio


___
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview



___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] isosurface time series data with different value

2010-02-22 Thread Gowri Somanath
Hi
I have time series data. I want to isosurface the data with different value
for each time step - but not those in the animation which linearly
interpolates the isosurface value over time.
I want to isosurface based on max-min of the data at each time step.
How would i do it?

thanks
Gowri
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Error in ParaView CVS Head with CMake Configuration

2010-02-22 Thread Dave Partyka
I just moved the definition of ParaView_QT_DIR to be just before including
ParaViewCommon. Give it a shot and let me know if it doesn't fix your
problem.

On Mon, Feb 22, 2010 at 12:04 PM, Michael Jackson <
mike.jack...@bluequartz.net> wrote:

> Pulled the latest CVS Head from GitHub? Is that really the latest?
>
>  When I tried to configure ParaView with my plugins using
> PARAVIEW_EXTRA_EXTERNAL_MODULES I get the following error:
>
> -- Plugin: IPFFilter enabled
> CMake Error: File /Components/pqObjectPanelImplementation.h.in does not
> exist.
> CMake Error at
> /Users/Shared/Kitware-CVS/ParaView/CMake/ParaViewPlugins.cmake:281
> (CONFIGURE_FILE):
>  configure_file Problem configuring file
> Call Stack (most recent call first):
>  
> /Users/mjackson/Workspace/PVMXADataModel/Source/Client/IPFFilter/CMakeLists.txt:93
> (ADD_PARAVIEW_OBJECT_PANEL)
>
> IPFFilter is my own plugin. The problem is that ParaView_QT_DIR is NOT
> defined at the point where my CMake code is executed. Looking at the top
> level CMakeLists.txt file I see that the Plugins are loaded at line 238
> (INCLUDE(ParaViewCommon)) which then picks up my code. The problem is that
> ParaView_QT_DIR is NOT defined until line 272 in the top level
> CMakeLists.txt file. This causes problems for my external modules because I
> have Qt code that needs to be compiled.
>
>  Is this a bug or am I just missing something?
>
> ___
> Mike Jackson  www.bluequartz.net
> Principal Software Engineer   mike.jack...@bluequartz.net
> BlueQuartz Software   Dayton, Ohio
>
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Using data in Calculator from multiple sources

2010-02-22 Thread Matthew Cragun
One other question:

If I take this one step further, is it possible to send the data at the
current time step to the PPF?

For example I have a mesh deforming in time (ob1) that is being compared to
a baseline with no time data (ob2).  All of the nodes are similar.  After
looking at some of the previous threads, it looks like I can access the data
for the temporal set with:

 ob1 = self.GetInputDataObject(0,0).GetTimeStep(0)
 ob2 = self.GetinputDataObject(0,1)
 some calculation of ob1.t0 and ob2

This hasn't seemed to work quite right however, as Paraview 3.6.2 doesn't
recognize the "GetTimeStep()" portion.  Are there any suggestions?

Also, in the end I would like to animate this.  Each time step, I would like
the PPF to update to the current time step.  So is it possible to say
something equivalent to:

 ob1 = self.GetInputDataObject(0,0).GetCurrentTimeStep()
 ob2 = self.GetinputDataObject(0,1)
 some calculation of ob1.tcurrent and ob2

Are there any recommended documentation resources for the Python api
available in the PPF?

Thanks,

Matt

On Mon, Feb 22, 2010 at 8:10 AM, Matthew Cragun  wrote:

> I am using one mesh that is deforming in time.  So node1.mesh2 is the the
> same node as node1.mesh1, just in a different location in space.
>
> But your point is well made that if I were using unrelated meshes (i.e.
> roughly similar geometry but with a different number of nodes in each mesh)
> finding the closest node would be a good way to go.
>
> Best Regards,
>
> --
> Matt Cragun
>
> Engineer
> TotalSim LLC
> 7003 Post Road,
> Suite 415
> Dublin, Ohio 43016
> O: (614) 255-7426
> M: (801) 404-6021
> E: mcra...@totalsim.us
>



-- 
Matt Cragun

Engineer
TotalSim LLC
7003 Post Road,
Suite 415
Dublin, Ohio 43016
O: (614) 255-7426
M: (801) 404-6021
E: mcra...@totalsim.us
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Error in ParaView CVS Head with CMake Configuration

2010-02-22 Thread Michael Jackson

That seems to have fixed that problem.

Would also be nice if the macro "paraview_build_optional_plugin" was  
in the ParaViewPlugins.cmake file as I have to recreate it in each of  
my Plugins CMake files because the macro is located in ParaView/ 
Plugins/CMakeLists.txt


Thanks
___
Mike Jackson  www.bluequartz.net


On Feb 22, 2010, at 1:30 PM, Dave Partyka wrote:

I just moved the definition of ParaView_QT_DIR to be just before  
including ParaViewCommon. Give it a shot and let me know if it  
doesn't fix your problem.


On Mon, Feb 22, 2010 at 12:04 PM, Michael Jackson > wrote:

Pulled the latest CVS Head from GitHub? Is that really the latest?

 When I tried to configure ParaView with my plugins using  
PARAVIEW_EXTRA_EXTERNAL_MODULES I get the following error:


-- Plugin: IPFFilter enabled
CMake Error: File /Components/pqObjectPanelImplementation.h.in does  
not exist.
CMake Error at /Users/Shared/Kitware-CVS/ParaView/CMake/ 
ParaViewPlugins.cmake:281 (CONFIGURE_FILE):

 configure_file Problem configuring file
Call Stack (most recent call first):
 /Users/mjackson/Workspace/PVMXADataModel/Source/Client/IPFFilter/ 
CMakeLists.txt:93 (ADD_PARAVIEW_OBJECT_PANEL)


IPFFilter is my own plugin. The problem is that ParaView_QT_DIR is  
NOT defined at the point where my CMake code is executed. Looking at  
the top level CMakeLists.txt file I see that the Plugins are loaded  
at line 238 (INCLUDE(ParaViewCommon)) which then picks up my code.  
The problem is that ParaView_QT_DIR is NOT defined until line 272 in  
the top level CMakeLists.txt file. This causes problems for my  
external modules because I have Qt code that needs to be compiled.


 Is this a bug or am I just missing something?

___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Error in ParaView CVS Head with CMake Configuration

2010-02-22 Thread Dave Partyka
I can probably fix that. I'll add it to my todo list.

On Mon, Feb 22, 2010 at 2:36 PM, Michael Jackson <
mike.jack...@bluequartz.net> wrote:

> That seems to have fixed that problem.
>
> Would also be nice if the macro "paraview_build_optional_plugin" was in the
> ParaViewPlugins.cmake file as I have to recreate it in each of my Plugins
> CMake files because the macro is located in ParaView/Plugins/CMakeLists.txt
>
> Thanks
>
> ___
> Mike Jackson  www.bluequartz.net
>
>
> On Feb 22, 2010, at 1:30 PM, Dave Partyka wrote:
>
>  I just moved the definition of ParaView_QT_DIR to be just before including
>> ParaViewCommon. Give it a shot and let me know if it doesn't fix your
>> problem.
>>
>> On Mon, Feb 22, 2010 at 12:04 PM, Michael Jackson <
>> mike.jack...@bluequartz.net> wrote:
>> Pulled the latest CVS Head from GitHub? Is that really the latest?
>>
>>  When I tried to configure ParaView with my plugins using
>> PARAVIEW_EXTRA_EXTERNAL_MODULES I get the following error:
>>
>> -- Plugin: IPFFilter enabled
>> CMake Error: File /Components/pqObjectPanelImplementation.h.in does not
>> exist.
>> CMake Error at
>> /Users/Shared/Kitware-CVS/ParaView/CMake/ParaViewPlugins.cmake:281
>> (CONFIGURE_FILE):
>>  configure_file Problem configuring file
>> Call Stack (most recent call first):
>>  
>> /Users/mjackson/Workspace/PVMXADataModel/Source/Client/IPFFilter/CMakeLists.txt:93
>> (ADD_PARAVIEW_OBJECT_PANEL)
>>
>> IPFFilter is my own plugin. The problem is that ParaView_QT_DIR is NOT
>> defined at the point where my CMake code is executed. Looking at the top
>> level CMakeLists.txt file I see that the Plugins are loaded at line 238
>> (INCLUDE(ParaViewCommon)) which then picks up my code. The problem is that
>> ParaView_QT_DIR is NOT defined until line 272 in the top level
>> CMakeLists.txt file. This causes problems for my external modules because I
>> have Qt code that needs to be compiled.
>>
>>  Is this a bug or am I just missing something?
>>
>> ___
>> Mike Jackson  www.bluequartz.net
>> Principal Software Engineer   mike.jack...@bluequartz.net
>> BlueQuartz Software   Dayton, Ohio
>>
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Saving AMR data in parallel

2010-02-22 Thread Moreland, Kenneth
Done.

http://www.paraview.org/Bug/view.php?id=10317

I also submitted a bug on saving as Xdmf.  I did not fill out the target 
version.  I didn't know if you wanted to shoot for 3.8 on that one.

http://www.paraview.org/Bug/view.php?id=10318

-Ken


On 2/19/10 6:59 PM, "Berk Geveci"  wrote:

Hrmpf. I ran into this same bug today with multi-block data. Would you mind 
submitting a bug report? I suggest that we fix this for 3.8. Also, we should 
investigate doing this with Xdmf.

-berk

On Fri, Feb 19, 2010 at 5:14 PM, Moreland, Kenneth  wrote:
Is there a way to save AMR (aka hierarchical box) data when running a parallel 
server?  I can save using the VTK hierarchical box files when running in 
serial, but this writer fails in parallel.

-Ken

     Kenneth Moreland
***  Sandia National Laboratories
***
*** *** ***  email: kmo...@sandia.gov 
**  ***  **  phone: (505) 844-8919
***  web:   http://www.cs.unm.edu/~kmorel 



___
Powered by www.kitware.com 

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview





     Kenneth Moreland
***  Sandia National Laboratories
***
*** *** ***  email: kmo...@sandia.gov
**  ***  **  phone: (505) 844-8919
***  web:   http://www.cs.unm.edu/~kmorel

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Enabling dataset visibility wiggles camera

2010-02-22 Thread David Doria
On Fri, Feb 19, 2010 at 9:40 PM, David Doria  wrote:

> On Fri, Feb 19, 2010 at 8:48 PM, Berk Geveci wrote:
>
>> Can you send instructions to reproduce with sources maybe? Or send two
>> files?
>>
>>
> It is working properly at home... I'll send instructions/files when I get
> to the lab on Monday.
>
> Thanks,
>
> David
>

Ok phew, I was not crazy. I can't reproduce it with sources, but here are
two files:
http://www.rpi.edu/~doriad/Paraview_List/wiggle/

Here is the procedure:

1) Load both files
2) color sparse.vtp pink
3) If dense.vtp is toggled on and off, the behavior is correct.
4) If sparse.vtp is toggled on and off, the other data set (dense.vtp)
moves.

Can someone take a look/verify this?

Thanks,

David
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Enabling dataset visibility wiggles camera

2010-02-22 Thread pat marion
I can repeat it with sources.

I think it might just be an opengl aliasing effect.  The points only seem to
move by 1 pixel (but when they all move at once, you definitely see the
wiggle).  If you another object to the scene, like a cone source, it
doesn't move at all.


To repeat:

create point source, set to 1000 points and radius 100, set representation
to outline.
create 2nd point source, set to 1000 points and radius to 10
hide the first pointset and click reset camera
now toggle visibility on/off of first pointset

Pat

On Mon, Feb 22, 2010 at 4:14 PM, David Doria  wrote:

> On Fri, Feb 19, 2010 at 9:40 PM, David Doria  wrote:
>
>> On Fri, Feb 19, 2010 at 8:48 PM, Berk Geveci wrote:
>>
>>> Can you send instructions to reproduce with sources maybe? Or send two
>>> files?
>>>
>>>
>> It is working properly at home... I'll send instructions/files when I get
>> to the lab on Monday.
>>
>> Thanks,
>>
>> David
>>
>
> Ok phew, I was not crazy. I can't reproduce it with sources, but here are
> two files:
> http://www.rpi.edu/~doriad/Paraview_List/wiggle/
>
> Here is the procedure:
>
> 1) Load both files
> 2) color sparse.vtp pink
> 3) If dense.vtp is toggled on and off, the behavior is correct.
> 4) If sparse.vtp is toggled on and off, the other data set (dense.vtp)
> moves.
>
> Can someone take a look/verify this?
>
> Thanks,
>
> David
>
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Enabling dataset visibility wiggles camera

2010-02-22 Thread pat marion
Also, I loaded your sparse.vtp and dense.vtp files into another vtk based
application, and there is no movement, so it's either a paraview bug or
paraview is using a different representation/mapper than my app.

Pat

On Mon, Feb 22, 2010 at 6:31 PM, pat marion  wrote:

> Actually, the wiggle much more extreme the more the radii vary.  Try with
> radius 10 and radius 10,000, produces a really big jump.
>
> Pat
>
>
> On Mon, Feb 22, 2010 at 6:28 PM, pat marion wrote:
>
>> I can repeat it with sources.
>>
>> I think it might just be an opengl aliasing effect.  The points only seem
>> to move by 1 pixel (but when they all move at once, you definitely see the
>> wiggle).  If you another object to the scene, like a cone source, it
>> doesn't move at all.
>>
>>
>> To repeat:
>>
>> create point source, set to 1000 points and radius 100, set representation
>> to outline.
>> create 2nd point source, set to 1000 points and radius to 10
>> hide the first pointset and click reset camera
>> now toggle visibility on/off of first pointset
>>
>> Pat
>>
>> On Mon, Feb 22, 2010 at 4:14 PM, David Doria wrote:
>>
>>> On Fri, Feb 19, 2010 at 9:40 PM, David Doria wrote:
>>>
 On Fri, Feb 19, 2010 at 8:48 PM, Berk Geveci 
 wrote:

> Can you send instructions to reproduce with sources maybe? Or send two
> files?
>
>
 It is working properly at home... I'll send instructions/files when I
 get to the lab on Monday.

 Thanks,

 David

>>>
>>> Ok phew, I was not crazy. I can't reproduce it with sources, but here are
>>> two files:
>>> http://www.rpi.edu/~doriad/Paraview_List/wiggle/
>>>
>>> Here is the procedure:
>>>
>>> 1) Load both files
>>> 2) color sparse.vtp pink
>>> 3) If dense.vtp is toggled on and off, the behavior is correct.
>>> 4) If sparse.vtp is toggled on and off, the other data set (dense.vtp)
>>> moves.
>>>
>>> Can someone take a look/verify this?
>>>
>>> Thanks,
>>>
>>> David
>>>
>>> ___
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.paraview.org/mailman/listinfo/paraview
>>>
>>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Enabling dataset visibility wiggles camera

2010-02-22 Thread pat marion
Actually, the wiggle much more extreme the more the radii vary.  Try with
radius 10 and radius 10,000, produces a really big jump.

Pat

On Mon, Feb 22, 2010 at 6:28 PM, pat marion  wrote:

> I can repeat it with sources.
>
> I think it might just be an opengl aliasing effect.  The points only seem
> to move by 1 pixel (but when they all move at once, you definitely see the
> wiggle).  If you another object to the scene, like a cone source, it
> doesn't move at all.
>
>
> To repeat:
>
> create point source, set to 1000 points and radius 100, set representation
> to outline.
> create 2nd point source, set to 1000 points and radius to 10
> hide the first pointset and click reset camera
> now toggle visibility on/off of first pointset
>
> Pat
>
> On Mon, Feb 22, 2010 at 4:14 PM, David Doria  wrote:
>
>> On Fri, Feb 19, 2010 at 9:40 PM, David Doria wrote:
>>
>>> On Fri, Feb 19, 2010 at 8:48 PM, Berk Geveci wrote:
>>>
 Can you send instructions to reproduce with sources maybe? Or send two
 files?


>>> It is working properly at home... I'll send instructions/files when I get
>>> to the lab on Monday.
>>>
>>> Thanks,
>>>
>>> David
>>>
>>
>> Ok phew, I was not crazy. I can't reproduce it with sources, but here are
>> two files:
>> http://www.rpi.edu/~doriad/Paraview_List/wiggle/
>>
>> Here is the procedure:
>>
>> 1) Load both files
>> 2) color sparse.vtp pink
>> 3) If dense.vtp is toggled on and off, the behavior is correct.
>> 4) If sparse.vtp is toggled on and off, the other data set (dense.vtp)
>> moves.
>>
>> Can someone take a look/verify this?
>>
>> Thanks,
>>
>> David
>>
>> ___
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Suggestion for Storing Colors for a Polygonal Mesh

2010-02-22 Thread Michael Jackson
I am in the early stages of designing a new filter that is supposed to  
color triangles based on their normal where the normal is used as an  
input to the filter and a unique color is output for each triangle.


  My questions are:
   Where should I store the color information? As a new set of  
"Scalars" or as Vectors as attribute data for the cells? Also, is  
there a "Standard" that is used to store the Normals for Polygonal  
data (vtkPolyData)? Are they always in an attribute data array called  
"Normals"? I was thinking I need to check first to see if the correct  
type of normals are included already and if not then generate the  
normals during the filter.


Thanks for any help or suggestions.
___
Mike Jackson  www.bluequartz.net
Principal Software Engineer   mike.jack...@bluequartz.net
BlueQuartz Software   Dayton, Ohio


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Cave Tracking

2010-02-22 Thread Christian Wohlschlager
** Reply Requested When Convenient **

Hello !
 
It's good to hear that 3.6.2 supports CAVE enviroment, does anybody of
you ever implement  trackíng  in the Cave.
 
thank you
 
christian 
 
 
-- Johannes Kepler Universitaet
-- Christian Wohlschlager
-- Altenbergerstr.69
-- 4040 Linz Austria
-- Tel: +43 732 2468 8595
- Mail:christian.wohlschla...@jku.at
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview