[Paraview] Changing Representation toolbar

2009-01-16 Thread Jérôme
Hi,

I wonder how I can add the slice slider of a slice representation in
the representation toolbar. First, is it possible within a plugin ? If
not, I can make changes in ParaView source code, but I didn't find how
the combo box for the representation is added, so I cannot do the same
!

Thanks a lot,

Jerome
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Changing Representation toolbar

2009-01-16 Thread Utkarsh Ayachit
Jerome,

It's definitely possible using a plugin to create a new toolbar that
acts as both the representation chooser as well as slice selector.
Look at the toolbar plugin example on the Wiki and then look at
pqDisplayRepresentationWidget ( in
Qt/Components/pqDisplayRepresentationWidget.h|cxx) to see the code for
the  current representation toolbar.

pqDisplayRepresentationWidget is indeed the representation toolbar, so
for simply changing the source code, that's the one you should be
looking at.

Utkarsh

On Fri, Jan 16, 2009 at 3:28 AM, Jérôme jerome.ve...@gmail.com wrote:
 Hi,

 I wonder how I can add the slice slider of a slice representation in
 the representation toolbar. First, is it possible within a plugin ? If
 not, I can make changes in ParaView source code, but I didn't find how
 the combo box for the representation is added, so I cannot do the same
 !

 Thanks a lot,

 Jerome
 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview

___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] ANNOUNCE: Kitware is hiring

2009-01-16 Thread Will Schroeder
If you are interested in a position at Kitware, please review the posting
below. Responses go to j...@kitware.com. Also see
http://www.kitware.com/company/jobopps.html.
Will
-

*Software Developer*

Kitware, Inc. is actively seeking talented software professionals to work
with leaders in the fields of computer vision, medical imaging,
visualization, 3D data publishing, and technical software development.
Candidates will create, develop and improve leading edge software solutions
in the context of an open-source development model, with the goals of
fostering extended, collaborative communities to provide flexible, low-cost
technical solutions.

By joining our team you will participate in a dynamic work environment with
exceptionally talented co-workers; and collaborate with esteemed researchers
from around the world by:

   - providing technical expertise and implementation skills in research,
   development, software creation and customer support;
   - designing and developing new software in visualization, graphics, image
   processing, and computational sciences; and
   - implementing, documenting, analyzing, creating and modifying computer
   systems or programs.

This is an opportunity for you to contribute your exceptional skill in C++;
your knowledge of other programming languages such as C, Java, MATLAB, Perl,
Tcl, and/or Python; your knowledge of software development
processes/environments including MS Visual Studio, gcc, make, CMake/CDash,
XCode and/or Borland; and your ability to develop software for Unix, Linux,
MacOS and/or Windows operating systems to large open-source projects and
communities such as VTK, ITK, CMake, ParaView, BatchMake, vxl/vnl,
KWWidgets, and Slicer.

Kitware team members enjoy our small company environment, flexibility in
work assignments, and the high levels of independence and
responsibility.  Besides
a great work environment, our comprehensive benefits package includes
flexible working hours, six weeks paid time off, a personal computer
hardware budget, 401(k), health insurance, life insurance, short- and
long-term disability, visa processing, a generous compensation plan (that
compensates employees for all hours worked – not just the first 40), profit
sharing, and free coffee, drinks and snacks.

For the right software developers, we are always hiring.  Please email your
cover letter and resume to j...@kitware.com for immediate consideration.

Kitware is an Equal Opportunity Employer and proudly supports Affirmative
Action.  Please, no recruiters or agencies without a previously signed
contract.
___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Building parallel pvserver with MPICH2 on Mac OS X

2009-01-16 Thread Shigenobu Hirose
Hi,

I want to build a parallel pvserver on Mac OS X 10.5.6 (Intel) with
paraview-3.4.0 and MPICH2, which fails as follows. It seems that
ccmake cannot find MPI libraries, but I'm sure that the parameters
point correct locations of the libraries. Also, I've confirmed that
MPICH2 are correctly installed on the system. (I also tried the CVS
source, which failed in the same way.)
Could anyone give me suggestions?

Thank you.
Shigenobu

- MPI-related parameters for ccmake:
MPI_EXTRA_LIBRARY/opt/local/lib/libmpich.a
MPI_INCLUDE_PATH /opt/local/include/mpich2
MPI_LIBRARY  /opt/local/lib/libmpichcxx.a

- Errors:
Linking CXX executable ../../../../bin/DistributedData
Undefined symbols:
  _MPI_Comm_dup, referenced from:
  vtkMPICommunicator::Duplicate(vtkMPICommunicator*)in
libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Reduce, referenced from:
  vtkMPICommunicatorReduceData(void const*, void*, int, int, int,
int, int*)in libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Cancel, referenced from:
  vtkMPICommunicator::Request::Cancel() in
libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Irecv, referenced from:
  int vtkMPICommunicatorNoBlockReceiveDataint(int*, int, int,
int, int, vtkMPICommunicator::Request, int*)in
libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockReceiveDataunsigned long(unsigned
long*, int, int, int, int, vtkMPICommunicator::Request, int*)in
libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockReceiveDatachar(char*, int, int,
int, int, vtkMPICommunicator::Request, int*)in
libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockReceiveDatafloat(float*, int,
int, int, int, vtkMPICommunicator::Request, int*)in
libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Isend, referenced from:
  int vtkMPICommunicatorNoBlockSendDataint(int const*, int, int,
int, int, vtkMPICommunicator::Request, int*)in
libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockSendDataunsigned long(unsigned
long const*, int, int, int, int, vtkMPICommunicator::Request, int*)in
libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockSendDatachar(char const*, int,
int, int, int, vtkMPICommunicator::Request, int*)in
libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockSendDatafloat(float const*, int,
int, int, int, vtkMPICommunicator::Request, int*)in
libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Comm_free, referenced from:
  vtkMPICommunicator::~vtkMPICommunicator()in
libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::~vtkMPICommunicator()in
libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::~vtkMPICommunicator()in
libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::InitializeCopy(vtkMPICommunicator*)in
libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Errhandler_set, referenced from:
  vtkMPICommunicator::GetWorldCommunicator()   in
libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Gatherv, referenced from:
  vtkMPICommunicator::GatherVVoidArray(void const*, void*, int,
int*, int*, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::GatherVVoidArray(void const*, void*, int,
int*, int*, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Comm_rank, referenced from:
  vtkMPICommunicator::InitializeNumberOfProcesses()   in
libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::ScatterVVoidArray(void const*, void*, int*,
int*, int, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::GatherVVoidArray(void const*, void*, int,
int*, int*, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Comm_size, referenced from:
  vtkMPICommunicator::InitializeNumberOfProcesses()   in
libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::GetWorldCommunicator()   in
libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::GatherVoidArray(void const*, void*, int,
int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::AllGatherVoidArray(void const*, void*, int,
int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::AllGatherVVoidArray(void const*, void*, int,
int*, int*, int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::ScatterVVoidArray(void const*, void*, int*,
int*, int, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::GatherVVoidArray(void const*, void*, int,
int*, int*, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Op_create, referenced from:
  vtkMPICommunicator::ReduceVoidArray(void const*, void*, int,
int, vtkCommunicator::Operation*, int)in
libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::AllReduceVoidArray(void const*, void*, int,
int, vtkCommunicator::Operation*)in
libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Ssend, referenced from:
  int vtkMPICommunicatorSendDatachar(char 

Re: [Paraview] Building parallel pvserver with MPICH2 on Mac OS X

2009-01-16 Thread Berk Geveci
Try adding libpmpich.a to the MPI_EXTRA_LIBRARY:

MPI_EXTRA_LIBRARY
/opt/local/lib/libmpich.a;/opt/local/lib/libpmpich.a

By the way, unless you are building ParaView statically, I recommend
using shared MPI libraries as well.

-berk

On Fri, Jan 16, 2009 at 9:55 AM, Shigenobu Hirose shir...@jamstec.go.jp wrote:
 Hi,

 I want to build a parallel pvserver on Mac OS X 10.5.6 (Intel) with
 paraview-3.4.0 and MPICH2, which fails as follows. It seems that
 ccmake cannot find MPI libraries, but I'm sure that the parameters
 point correct locations of the libraries. Also, I've confirmed that
 MPICH2 are correctly installed on the system. (I also tried the CVS
 source, which failed in the same way.)
 Could anyone give me suggestions?

 Thank you.
 Shigenobu

 - MPI-related parameters for ccmake:
 MPI_EXTRA_LIBRARY/opt/local/lib/libmpich.a
 MPI_INCLUDE_PATH /opt/local/include/mpich2
 MPI_LIBRARY  /opt/local/lib/libmpichcxx.a

 - Errors:
 Linking CXX executable ../../../../bin/DistributedData
 Undefined symbols:
  _MPI_Comm_dup, referenced from:
  vtkMPICommunicator::Duplicate(vtkMPICommunicator*)in
 libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Reduce, referenced from:
  vtkMPICommunicatorReduceData(void const*, void*, int, int, int,
 int, int*)in libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Cancel, referenced from:
  vtkMPICommunicator::Request::Cancel() in
 libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Irecv, referenced from:
  int vtkMPICommunicatorNoBlockReceiveDataint(int*, int, int,
 int, int, vtkMPICommunicator::Request, int*)in
 libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockReceiveDataunsigned long(unsigned
 long*, int, int, int, int, vtkMPICommunicator::Request, int*)in
 libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockReceiveDatachar(char*, int, int,
 int, int, vtkMPICommunicator::Request, int*)in
 libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockReceiveDatafloat(float*, int,
 int, int, int, vtkMPICommunicator::Request, int*)in
 libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Isend, referenced from:
  int vtkMPICommunicatorNoBlockSendDataint(int const*, int, int,
 int, int, vtkMPICommunicator::Request, int*)in
 libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockSendDataunsigned long(unsigned
 long const*, int, int, int, int, vtkMPICommunicator::Request, int*)in
 libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockSendDatachar(char const*, int,
 int, int, int, vtkMPICommunicator::Request, int*)in
 libvtkParallel.a(vtkMPICommunicator.o)
  int vtkMPICommunicatorNoBlockSendDatafloat(float const*, int,
 int, int, int, vtkMPICommunicator::Request, int*)in
 libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Comm_free, referenced from:
  vtkMPICommunicator::~vtkMPICommunicator()in
 libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::~vtkMPICommunicator()in
 libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::~vtkMPICommunicator()in
 libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::InitializeCopy(vtkMPICommunicator*)in
 libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Errhandler_set, referenced from:
  vtkMPICommunicator::GetWorldCommunicator()   in
 libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Gatherv, referenced from:
  vtkMPICommunicator::GatherVVoidArray(void const*, void*, int,
 int*, int*, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::GatherVVoidArray(void const*, void*, int,
 int*, int*, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Comm_rank, referenced from:
  vtkMPICommunicator::InitializeNumberOfProcesses()   in
 libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::ScatterVVoidArray(void const*, void*, int*,
 int*, int, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::GatherVVoidArray(void const*, void*, int,
 int*, int*, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Comm_size, referenced from:
  vtkMPICommunicator::InitializeNumberOfProcesses()   in
 libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::GetWorldCommunicator()   in
 libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::GatherVoidArray(void const*, void*, int,
 int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::AllGatherVoidArray(void const*, void*, int,
 int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::AllGatherVVoidArray(void const*, void*, int,
 int*, int*, int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::ScatterVVoidArray(void const*, void*, int*,
 int*, int, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  vtkMPICommunicator::GatherVVoidArray(void const*, void*, int,
 int*, int*, int, int)in libvtkParallel.a(vtkMPICommunicator.o)
  _MPI_Op_create, referenced from:
  

Re: [Paraview] Averages over Selections of Sliced Areas

2009-01-16 Thread Berk Geveci
This is a very cool challenge :-)

(1) is pretty easy. After the slice filter, apply the Connectivity
filter. This will create a new array called RegionId, which will be
different for each region. You can the use the threshold filter or the
selection mechanism to extract one of these regions.

Now (2) is more fun. Is there any way of quantifying the regions that
are outside the boundary zone? Is it based on distance? The value of
some other variable?

-berk

On Fri, Jan 16, 2009 at 2:20 AM, Maurice Waldner merl...@gmx.net wrote:
 Dear Paraview Users

 I have been using ParaView for some time now, but am unsure of how to 
 calculate averages over certain areas. Picture1 shows a side-view of an 
 incineration vessel. It has several passes, some of them with separation 
 walls. Picture2 depicts a horizontal slice of it.
 I would like to calculate average values (e.g. of velocity, temperature, 
 etc.) of some of these SUB-areas of the slice. In addition, very near to the 
 walls, there is the wall effect. I would for instance calculate the averages 
 of the subareas, excluding the values nearer than 100 mm to the walls.

 1) How can I calculate the averages of the sub-areas?
 2) How can I calculate the averages of the sub-areas, excluding the 
 wall-effect boundary zone?

 Thank you very much for your help!
 Maurice

 --
 Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL
 für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a

 ___
 ParaView mailing list
 ParaView@paraview.org
 http://www.paraview.org/mailman/listinfo/paraview


___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] TransformFilter from python

2009-01-16 Thread Jorge Mario Mazo
Hi there

I'm having problems trying to use the TransforFilter, so far I can
transform objects
but when I create a filter from python and register the proxy, the
object inspenctor shows nothing

and I got this error paraview Selected proxy value not in the list:  Transform

then

I found this

http://markmail.org/message/rfd75oj74fk4u4v7

that is a similar problem, but that solution seems to crash paraview

this a test code

any help is very appreciated it


sph = 
servermanager.sources.vrmlreader(FileName=/Users/jmazo/Desktop/carRot.wrl)
#sph = servermanager.sources.vrmlreader(FileName=filenamefoo)
pm=servermanager.ProxyManager()
pm.RegisterProxy(sources, mysource, sph)
view = pm.GetProxy(views, RenderView1)
rep = servermanager.CreateRepresentation(sph, view)
pm.RegisterProxy(representations, myrep1, rep)


transforms = servermanager.createModule(transforms)
transform = transforms.Transform()
#transform.Translate = [0, 0, 0]
#transform.Rotate = [3, 2, 11]
#transform.Scale = [1, 1, 10]


tf = servermanager.filters.TransformFilter(Input = sph, Transform = transform)

sourceProperty = tf.GetProperty(Transform)
domain = sourceProperty.GetDomain(proxy_list)
domain.AddProxy(sph.SMProxy)




#tf.Transform = transform
pm.RegisterProxy(sources, TransformFilter, tf) == HERE when I
click on TransformFilter paraview just dies, (no messages)


repr = servermanager.CreateRepresentation(tf, view)
pm.RegisterProxy(representations, myrep2, repr)

___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Update all pipeline objects, paraview time

2009-01-16 Thread Nehme Bilal
- I am trying to add an action to paraview that cause a re 
apply for all pipeline objets. I tried:
vtkSMProxyManager *pxm = 
vtkSMProxyManager::GetProxyManager();

pxm-UpdateRegisteredProxiesInOrder(0);

but this didn't work. I also tried:

	vtkSMProxyManager *pxm = 
vtkSMProxyManager::GetProxyManager();

vtkStringList *list = vtkStringList::New();
pxm-GetProxiesNamesInGroup(sources, list);
for(int i =0; i  list-GetLength(); i++)
{
		vtkSMProxy *proxy = 
pxm-GetProxy(sources,list-GetString(i));

proxy-Modified();
}

pxm-UpdateRegisteredProxiesInOrder(0);
pqApplicationCore::instance()-render();

this doesn't work two ! what am I missing ?

another question:
- I know that vtkObject::GetMTime() return a single 
object's modified time. Is there a way to find the last 
time ANY object was modified, not just a single object. I 
know that I can do it by comparing last modified objects 
time and get the earlier one but am just wondering if it's 
already stored somewhere in Paraview.


Thank you,

Nehme

___
ParaView mailing list
ParaView@paraview.org
http://www.paraview.org/mailman/listinfo/paraview