[vtk-developers] vtkTesting

Adekunle Adeshina codedengineer at yahoo.com
Sun Jun 10 18:26:42 EDT 2012


Hi David,

I actually achieved that using the error reporting subroutines.
 
GetReportGraphicErrors(
), ReportGraphicErrorsOff( ) , ReportGraphicErrorsOn( ) etc


Is that what you are trying to do? 

Thank you.

Best Regards,
A.M. Adeshina




________________________________
 From: "vtk-developers-request at vtk.org" <vtk-developers-request at vtk.org>
To: vtk-developers at vtk.org 
Sent: Monday, June 11, 2012 12:00 AM
Subject: vtk-developers Digest, Vol 98, Issue 8
 
Send vtk-developers mailing list submissions to
    vtk-developers at vtk.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://www.vtk.org/mailman/listinfo/vtk-developers
or, via email, send a message with subject or body 'help' to
    vtk-developers-request at vtk.org

You can reach the person managing the list at
    vtk-developers-owner at vtk.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of vtk-developers digest..."


Today's Topics:

   1. Check if VTK was built with testing (David Doria)
   2. [VTK 0013233]: enum/define conflict in    vtkImplicitBoolean.h
      and vtkBooleanOperationPolyDataFilter.h (Mantis Bug Tracker)
   3. Automatically configure scalar range for mappers (Jana Sefcikova)
   4. Re: Check if VTK was built with testing (David Cole)


----------------------------------------------------------------------

Message: 1
Date: Sun, 10 Jun 2012 07:50:31 -0400
From: David Doria <daviddoria at gmail.com>
Subject: [vtk-developers] Check if VTK was built with testing
To: VTK Developers <vtk-developers at vtk.org>
Message-ID:
    <CABDpjTmPmF+rzbvuXPCpt7XdDpUFOsyyj8cv3wqe3nn9qzYfCA at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

In the vtkwikiexamples repository, we get a compiler error:

fatal error: vtkTesting.h: No such file or directory

if VTK was not built with BUILD_TESTING=ON. Is there a way to check the
value of this variable in an external project?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtk-developers/attachments/20120610/53d2d72b/attachment-0001.htm>

------------------------------

Message: 2
Date: Sun, 10 Jun 2012 08:08:20 -0400
From: Mantis Bug Tracker <mantis at public.kitware.com>
Subject: [vtk-developers] [VTK 0013233]: enum/define conflict in
    vtkImplicitBoolean.h and vtkBooleanOperationPolyDataFilter.h
To: vtk-developers at vtk.org
Message-ID: <455ac67cb002cca2ed9379e05d40ea80 at www.vtk.org>
Keywords: [VTK] (No Category)
Content-Type: text/plain; charset="utf-8"


The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=13233 
====================================================================== 
Reported By:                Alan Smithee
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   13233
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    TBD 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:          
====================================================================== 
Date Submitted:             2012-06-10 08:08 EDT
Last Modified:              2012-06-10 08:08 EDT
====================================================================== 
Summary:                    enum/define conflict in vtkImplicitBoolean.h and
vtkBooleanOperationPolyDataFilter.h
Description: 
I am using vtk 5.10.0 and have to use vtkImplicitBoolean.h and
vtkBooleanOperationPolyDataFilter.h at the same time. There was a commit which
changes the operation type names to "VTK_UNION", "VTK_INTERSECTION" and
"VTK_DIFFERENCE":
http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=d856f10a103abd1209c5be3f4939fe9364b6afc8

unfortunately, due to this change the define lines in vtkImplicitBoolean.h
become obsolete and are in conflict.

#define VTK_UNION 0
#define VTK_INTERSECTION 1
#define VTK_DIFFERENCE 2
#define VTK_UNION_OF_MAGNITUDES 3

just including in the wrong order like this:

#include <vtkImplicitBoolean.h>
#include <vtkBooleanOperationPolyDataFilter.h>

leads to the following compile error:

/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:55:5: error: expected
identifier before numeric constant
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:55:5: error: expected
'}' before numeric constant
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:55:5: error: expected
unqualified-id before numeric constant
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:62:3: error: 'virtual'
outside class declaration
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'void
SetOperation(int)':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:62:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:62:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:62:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:62:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:62:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:62:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:62:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:62:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: At global scope:
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:62:3: error: 'virtual'
outside class declaration
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:62:3: error: 'virtual'
outside class declaration
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:63:3: error: 'virtual'
outside class declaration
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'int
GetOperation()':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:63:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:63:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:63:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:63:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:63:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:63:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:63:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'void
SetOperationToUnion()':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:65:5: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'void
SetOperationToIntersection()':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:67:5: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'void
SetOperationToDifference()':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:69:5: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: At global scope:
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:74:3: error: 'virtual'
outside class declaration
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'void
SetReorientDifferenceCells(int)':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:74:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:74:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:74:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:74:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:74:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:74:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:74:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:74:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: At global scope:
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:75:3: error: 'virtual'
outside class declaration
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'int
GetReorientDifferenceCells()':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:75:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:75:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:75:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:75:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:75:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:75:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:75:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: At global scope:
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:76:3: error: 'virtual'
outside class declaration
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'void
ReorientDifferenceCellsOn()':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:76:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: At global scope:
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:76:3: error: 'virtual'
outside class declaration
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'void
ReorientDifferenceCellsOff()':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:76:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: At global scope:
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:81:3: error: 'virtual'
outside class declaration
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'void
SetTolerance(double)':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:81:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:81:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:81:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:81:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:81:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:81:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:81:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:81:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: At global scope:
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:82:3: error: 'virtual'
outside class declaration
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'double
GetTolerance()':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:82:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:82:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:82:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:82:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:82:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:82:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:82:3: error: invalid
use of 'this' in non-member function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: At global scope:
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:84:1: error: expected
unqualified-id before 'protected'
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:86:39: error: expected
constructor, destructor, or type conversion before ';' token
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:96:1: error: expected
unqualified-id before 'private'
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:98:58: error: 'void
operator=(const vtkBooleanOperationPolyDataFilter&)' must be a nonstatic member
function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:123:1: error: expected
declaration before '}' token
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'double
GetTolerance()':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:82:3: warning: control
reaches end of non-void function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'int
GetReorientDifferenceCells()':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:75:3: warning: control
reaches end of non-void function
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h: In function 'int
GetOperation()':
/usr/include/vtk-5.10/vtkBooleanOperationPolyDataFilter.h:63:3: warning: control
reaches end of non-void function
make: *** [main.o] Error 1
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change              
====================================================================== 
2012-06-10 08:08 Alan Smithee   New Issue                                    
======================================================================



------------------------------

Message: 3
Date: Sun, 10 Jun 2012 14:17:03 +0200
From: Jana Sefcikova <neollie at gmail.com>
Subject: [vtk-developers] Automatically configure scalar range for
    mappers
To: vtkusers at vtk.org, vtk-developers at vtk.org
Message-ID:
    <CAE9iZ8L0MeT1HhpgxWtUO5AB94ya1sFFONWXB3jhaKg0oAit6w at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi all,

I would like know whether there is some way, how to configure mapper to use
active /mapped_class::SetActiveScalars/ or actual array /set by
vtkMapper::SetInputArrayToProcess/ input's scalar range automatically.

I know  vtkMapper::SetScalarRange  function but for great part of mapping I
think that scalar range could be obtained automatically from mapped
active/actual array scalar range.
Currently I see only one case when scalar range could be preset via this
function and this is , when user really want to manually change the range.
(Perhaps there are other cases?)

In great part of examples on wiki, I saw that user had manually update
pipeline  to get the scalar range in order to preset it into mapper,
furthemore he need it to make all the time when pipeline changes.
For example when reader's input is updated.
For example if I create simple pipeline : read object -> compute curvature
-> map curvature into HSV via mapper  and run it via script /tcl, python /
, if I will change input object, I would need again set mapper scalar range
to min and max curvature value manually using interpreter.

I would like ask, whether there is some way how to configure automatically
scalar ranges  or I need wrap all such code into own algorithm ( where I
will ensure manually update inside RequestData) ?

Thanks

Jana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtk-developers/attachments/20120610/2fc32a18/attachment-0001.htm>

------------------------------

Message: 4
Date: Sun, 10 Jun 2012 10:35:44 -0400
From: David Cole <david.cole at kitware.com>
Subject: Re: [vtk-developers] Check if VTK was built with testing
To: David Doria <daviddoria at gmail.com>
Cc: VTK Developers <vtk-developers at vtk.org>
Message-ID:
    <CAAdwe9WwauK1tdAXZtbUv6j-m1qddisaOA7EOD0c4CZpo5gDPA at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Seems like:

  if(vtkTestingCore_LOADED)

should work. (Tested against a build tree of VTK, not sure if the same
applies to an install tree...)

Hopefully one of the modularization gurus chimes in to say if that's the
canonical way we're expected to do that. There are other ways to tell, even
though BUILD_TESTING itself is not available after a "find_package(VTK)"...


I used the following CMake code to see what variables are available (and
there are many, many, many) after a find_package(VTK):

cmake_minimum_required(VERSION 2.8)
project(VTK-cli1)

function(echo_all_cmake_variables)
  message(STATUS "")
  get_cmake_property(vs VARIABLES)
  foreach(v ${vs})
    message(STATUS "${v}='${${v}}'")
  endforeach(v)
  message(STATUS "")
endfunction()

message(STATUS "")
message(STATUS "before find_package(VTK)")
echo_all_cmake_variables()

find_package(VTK)

message(STATUS "")
message(STATUS "after find_package(VTK)")
echo_all_cmake_variables()


Then I ran CMake, pointing it to a build of VTK, and just searched the
output for "Testing":

  cmake -DVTK_DIR="/Users/.../VTK-build" .. > out.txt


HTH,
David C.


On Sun, Jun 10, 2012 at 7:50 AM, David Doria <daviddoria at gmail.com> wrote:

> In the vtkwikiexamples repository, we get a compiler error:
>
> fatal error: vtkTesting.h: No such file or directory
>
> if VTK was not built with BUILD_TESTING=ON. Is there a way to check the
> value of this variable in an external project?
>
> Thanks,
>
> David
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtk-developers/attachments/20120610/fccf63dd/attachment-0001.htm>

------------------------------

_______________________________________________
vtk-developers mailing list
vtk-developers at vtk.org
http://www.vtk.org/mailman/listinfo/vtk-developers


End of vtk-developers Digest, Vol 98, Issue 8
*********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtk-developers/attachments/20120610/91e05ebb/attachment.htm>


More information about the vtk-developers mailing list