# Display node full fill view

**URL:** <https://discourse.slicer.org/t/display-node-full-fill-view/36564>\
**Category:** Development\
**Created:** [June 3, 2024, 7:28am UTC](https://discourse.slicer.org/t/display-node-full-fill-view/36564 "2024-06-03T07:28:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fqzhice](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@fqzhice](https://discourse.slicer.org/u/fqzhice)\
**Post date:** [June 3, 2024, 7:28am UTC](https://discourse.slicer.org/t/display-node-full-fill-view/36564/1 "2024-06-03T07:28:15Z")

</div>

we create a new extension to load dicom image, code as below:

```auto
// add to volume node
 double dirs[3][3];
 for (int i = 0; i < 3; i++)
 for (int j = 0; j < 3; j++)
 dirs[i][j] = 0.0;
 dirs[0][0] = 1;
 dirs[1][1] = 1;
 dirs[2][2] = 1;
auto volumeNode = vtkMRMLScalarVolumeNode::SafeDownCast(
    this->logic()->GetMRMLScene()->AddNewNodeByClass("vtkMRMLScalarVolumeNode", "Source"));
volumeNode->SetAndObserveImageData(vtkImageDataPointer);
//volumeNode->SetOrigin(100,100,100);
//volumeNode->SetSpacing(1,1,1);
//volumeNode->SetIJKToRASDirections(dirs );
volumeNode->CreateDefaultDisplayNodes();
volumeNode->SetDisplayVisibility(true);

```

 ![2024-06-03-15-23-44-image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/3/23879fdbed1efd09c6c76b1508ee41743d026de8.jpeg)

the problem is that

1. the image isn’t displayed without click “visible” button
2. it show nothing if drag slider to change slicer in “blue” rect range
3. image displayed on the right-down of view

---

<div class="post-metadata">

**Author:** ![fqzhice](https://avatars.discourse-cdn.com/v4/letter/f/7bcc69/32.png) [@fqzhice](https://discourse.slicer.org/u/fqzhice)\
**Post date:** [June 3, 2024, 10:00am UTC](https://discourse.slicer.org/t/display-node-full-fill-view/36564/2 "2024-06-03T10:00:40Z")

</div>

i think it maybe the origin , spacing and direction error, but i dont know how get from itk image

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 3, 2024, 2:14pm UTC](https://discourse.slicer.org/t/display-node-full-fill-view/36564/3 "2024-06-03T14:14:44Z")

</div>

The only supported method of loading DICOM images into Slicer is by [using the DICOM module](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#dicom). There are many different ways to deal with DICOM data, but if you do it your own way then we cannot help.
