X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvMeshActor.cxx;h=b3d3c7f24b2b18fee32a4624d794228cdea29f3e;hb=HEAD;hp=d8741aa5448cbc1e5cff6b5b4962267d3df0ba6d;hpb=9768b4757920c85042b8fd9710f3ddfc2e9bf5d4;p=clitk.git diff --git a/vv/vvMeshActor.cxx b/vv/vvMeshActor.cxx index d8741aa..b3d3c7f 100644 --- a/vv/vvMeshActor.cxx +++ b/vv/vvMeshActor.cxx @@ -27,9 +27,9 @@ #include vvMeshActor::vvMeshActor() : - mCutDimension(0), mMesh(NULL), - mMarching(NULL), mMapper(NULL), - mActor(NULL), + mCutDimension(0), mMesh(ITK_NULLPTR), + mMarching(ITK_NULLPTR), mMapper(ITK_NULLPTR), + mActor(ITK_NULLPTR), mSuperpostionMode(false), mTimeSlice(0) {} @@ -77,6 +77,7 @@ void vvMeshActor::Init(vvMesh::Pointer mesh,int time_slice,vvImage::Pointer vf) mActor->GetProperty()->EdgeVisibilityOn(); mActor->GetProperty()->SetEdgeColor(mMesh->r,mMesh->g,mMesh->b); mActor->GetProperty()->SetLineWidth(2.); + mActor->GetProperty()->SetOpacity(0.995); //in order to get VTK to turn on the alpha-blending in OpenGL } void vvMeshActor::SetCutSlice(double slice)