Skip to content

Commit

Permalink
removed or commented unused
Browse files Browse the repository at this point in the history
  • Loading branch information
Anastasia-Nikitina committed May 20, 2023
1 parent e4d2599 commit 1f957a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import solve.settings.visualization.popover.SettingsDialogNode
import solve.styles.Style
import solve.utils.createHGrowHBox
import solve.utils.createSnapshot
import solve.utils.getScreenPosition
import solve.utils.imageViewIcon
import solve.utils.loadResourcesImage
import solve.utils.materialfx.MaterialFXDialog.createGenericDialog
Expand Down Expand Up @@ -211,17 +210,17 @@ class VisualizationSettingsLayerCell(
return dialog
}

private fun getPopOverNodeSize(layerType: LandmarkType) = when (layerType) {
LandmarkType.Keypoint -> DoublePoint(
PointLayerSettingsPopOverNode.LayerSettingsNodePrefWidth,
PointLayerSettingsPopOverNode.LayerSettingsNodePrefHeight
)
LandmarkType.Line -> DoublePoint(
LineLayerSettingsPopOverNode.LayerSettingsNodePrefWidth,
LineLayerSettingsPopOverNode.LayerSettingsNodePrefHeight
)
LandmarkType.Plane -> null
}
// private fun getPopOverNodeSize(layerType: LandmarkType) = when (layerType) {
// LandmarkType.Keypoint -> DoublePoint(
// PointLayerSettingsPopOverNode.LayerSettingsNodePrefWidth,
// PointLayerSettingsPopOverNode.LayerSettingsNodePrefHeight
// )
// LandmarkType.Line -> DoublePoint(
// LineLayerSettingsPopOverNode.LayerSettingsNodePrefWidth,
// LineLayerSettingsPopOverNode.LayerSettingsNodePrefHeight
// )
// LandmarkType.Plane -> null
// }

private fun getLayerSettingsType(layerSettings: LayerSettings) = when (layerSettings) {
is LayerSettings.PointLayerSettings -> LandmarkType.Keypoint
Expand Down Expand Up @@ -254,8 +253,6 @@ class VisualizationSettingsLayerCell(
private const val LayerFieldHBoxPaddingRight = -2.5
private const val LayerVisibilityIconPaddingLeft = -5.0

private val LayerSettingsSpawnPositionOffset = DoublePoint(-135.0, 25.0)

private val editIconImage = loadResourcesImage(IconsSettingsVisualizationEditPath)
private val layerVisibleIconImage = loadResourcesImage(IconsSettingsVisualizationLayerVisiblePath)
private val layerInvisibleIconImage = loadResourcesImage(IconsSettingsVisualizationLayerInvisiblePath)
Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/solve/utils/MFXUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,4 @@ fun EventTarget.mfxCheckbox(text: String? = null, property: Property<Boolean>? =
if (property != null) it.bind(property)
}

fun MFXContextMenu.lineSeparator() = this.addLineSeparator(MFXContextMenu.Builder.getLineSeparator())

fun MFXContextMenuItem.action(op: () -> Unit) = this.setOnAction { op() }

0 comments on commit 1f957a5

Please sign in to comment.